Expand description
Typed, cooperative control for an in-flight Code run.
A run is deliberately controlled through a small per-run inbox instead of mutating loop state from the host thread. This keeps the execution loop as the sole owner of its transcript while still allowing an embedding host to steer or interrupt work at well-defined safe points. The wire types in this module are also used by the language SDKs and can be persisted by a host without depending on Rust internals.
Structs§
- Interrupt
Request - Convenience input for
crate::AgentSession::interrupt. - RunControl
Error Info - Machine-readable rejection/settlement detail.
- RunControl
Receipt - Durable, idempotent acknowledgement for a control request.
- RunControl
Request - Versioned request accepted by a run-control inbox.
- RunControl
Snapshot - Read-only state exposed to SDK/UI clients for optimistic concurrency.
- Steer
Request - Convenience input for
crate::AgentSession::steer.
Enums§
- RunControl
Command - A typed control command.
- RunControl
Error - Errors returned before a control is accepted.
- RunControl
Operation - The operation requested by a host.
- RunControl
Receipt State - Receipt state returned by the host boundary.
Constants§
- RUN_
CONTROL_ MAX_ ID_ BYTES - Maximum size of an externally supplied identifier.
- RUN_
CONTROL_ MAX_ INPUT_ BYTES - Maximum UTF-8 bytes accepted for a single steer message.
- RUN_
CONTROL_ MAX_ QUEUE - Maximum number of controls waiting at one run safe point.
- RUN_
CONTROL_ MAX_ REASON_ BYTES - Maximum UTF-8 bytes accepted for an interrupt reason.
- RUN_
CONTROL_ MAX_ SEEN_ REQUESTS - Number of request receipts retained for idempotent retries.
- RUN_
CONTROL_ RECEIPT_ SCHEMA_ V1 - Schema carried by a run-control receipt.
- RUN_
CONTROL_ REQUEST_ SCHEMA_ V1 - Schema carried by a run-control request.