Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Agent Entry

Each agent is defined as an [[agents]] entry in runtime.toml. This page documents every field in the agent entry schema.

Example

[[agents]]
name = "log-monitor"
wasm = "./agents/log_monitor.wasm"
enabled = true
tick_interval_ms = 5000
fuel_limit = 500_000
capabilities = ["database.read", "database.write", "http.request", "inference.prompt"]

[[agents.endpoints]]
name = "check-logs"
transport = "http"
url = "https://logs.example.com/api/query"

[agents.spend_policy]
max_daily_usd = 1.00
alert_threshold_pct = 80

[agents.sync.journal]
enabled = true
topic = "log-monitor"

[agents.intent_policy]
mutation_allowed = false
require_approval = ["http.request"]

Top-level fields

FieldTypeDefaultDescription
namestringrequiredUnique agent name (used in logs, A2A, dashboard)
wasmstringrequiredPath to the compiled .wasm module
enabledbooltrueWhether the agent starts with the runtime
tick_interval_msu64inherits runtime.tick_interval_msPer-agent tick override
fuel_limitu64inherits runtime.fuel_limitPer-agent fuel budget override
memory_limit_mbu32inherits runtime.memory_limit_mbPer-agent memory limit override
capabilitiesstring[][]Host capabilities granted to this agent
envtable{}Environment variables injected into the agent
descriptionstring""Human-readable description shown in dashboard
tagsstring[][]Metadata tags for filtering and grouping

[[agents.endpoints]]

Defines external service endpoints the agent may call.

FieldTypeDefaultDescription
namestringrequiredEndpoint identifier used in SDK calls
transportstring"http"Transport type: http, grpc, ws
urlstringrequiredEndpoint URL
headerstable{}Static headers added to every request
timeout_secsu6430Per-request timeout

[agents.spend_policy]

Controls inference spend limits for the agent.

FieldTypeDefaultDescription
max_daily_usdf640.0 (unlimited)Maximum daily spend in USD
max_monthly_usdf640.0 (unlimited)Maximum monthly spend in USD
alert_threshold_pctu3280Percentage of budget that triggers an alert

[agents.sync.journal]

Controls journal synchronization for this agent.

FieldTypeDefaultDescription
enabledboolfalseEnable journal sync for this agent
topicstringagent nameSync topic; agents sharing a topic share journal state

[agents.intent_policy]

Per-agent governance rules.

FieldTypeDefaultDescription
mutation_allowedbooltrueWhether the agent can perform mutating operations
require_approvalstring[][]Capabilities that require human approval before execution
max_actions_per_ticku320 (unlimited)Rate-limit actions per tick