Client class: Python and
TypeScript. Scoped API keys limit what a client can
do, such as executions:read for one that only watches. See
Authentication.
Create an execution
A create names an agent and an input. The kernel records the execution and dispatches the agent, and the call returns without waiting for the run.
A fork reruns an existing execution from an event in its log. Steps recorded up
to that point replay, and everything after runs live. See
Forks.
View an execution
- Status.
GET /v0/executions/{id}returns the current state.blockedmeans the execution is waiting on an approval or a subagent. - Event log. Every state change in order. Poll it with
after_seqto follow progress. Events carry no step output, so read a step’s result oncestep.succeededlands. See Events. - Live stream. Token deltas while a step runs. The stream is best-effort and never persisted, so the recorded step result is the source of truth. See Client contract.
Approve or cancel an execution
- Approvals. When policy requires approval for a step, the execution blocks until a client grants or denies it. A grant lets the step run; a denial surfaces a policy error to the agent at that step. See Approvals.
- Cancel. Moves the execution to
cancelledand stops further dispatch. Its subagents are cancelled with it.