Platform
Orchestration
Workflows, triggers, retries, approvals and versions.
Every run is a durable workflow. Its state is saved after each step, so a run can wait for an approval, survive a restart and continue where it stopped.
Planned and explicit steps
By default an agent plans its own steps, within its tools, policies and limits. Add a steps section when the order matters, for example when a person has to approve before anything is changed.
name: incident-respondermodel: reasoning triggers: - event: pagerduty/incident.triggered steps: - id: gather parallel: - tool: datadog.query_metrics - tool: datadog.search_logs - tool: github.list_deployments retry: { attempts: 3, backoff: exponential } - id: plan model: reasoning - id: approve approval: approvers: ["oncall:platform"] channel: slack timeout: 15m - id: remediate tool: github.rollback_deployment| Key | Description |
|---|---|
tool | Call one tool. |
model | Ask a model profile to reason over what has been gathered so far. |
parallel | Run several steps at the same time and continue when all have finished. |
approval | Pause until a person approves or rejects. |
retry | The number of attempts and the backoff between them. |
Durable execution
When a worker restarts or a provider times out, the run continues from the last completed step. Completed steps are not run again.
A step that is retried may reach a tool more than once. The gateway sends the same idempotency key on every attempt of a step, so servers that support it apply the change once.
Retries and failures
A failed step is retried with the backoff you set. If it still fails, the run stops at that step with its state intact and is marked as failed. Fix the cause and resume the run, or cancel it.
Approvals
An approval step pauses the run and notifies the approvers. A paused run holds no compute and can wait for as long as its timeout allows.
| Key | Description |
|---|---|
approvers | A group (group:finance-controllers), an on-call schedule (oncall:platform) or a person's manager (manager_of:args.user). |
channel | Where the request is sent: slack, email or console. |
timeout | How long to wait for a decision. |
on_timeout | deny the action, or escalate to the next approver. |
Approvals can be written into a workflow, as above, or required by a policy for specific actions. See Permissions and policies.
Agents calling agents
An agent can be exposed to other agents as a tool. The child run appears inside the parent's trace, and it inherits the caller's permissions unless a policy narrows them.
Concurrency
Limits can be set for an agent, a tool or a tenant. Work beyond a limit waits in a queue, so a burst of events does not overwhelm a downstream system.
Traces
Each run has one trace: the plan, model calls, tool calls, policy decisions, approvals and output on a single timeline, with tokens, cost and duration for every step. The runs view in the demo console shows several.