Structs§
- Action
- One unit of “something the model asked the runtime to do”.
- Action
Outcome - Per-action result — the model-visible fate of one
Action(D9: a policy refusal lands here, never as a silent drop). Batch-level failure isExecError; “something went wrong along the way” is an outcome, not an error. - Agent
Config - Approval
Request - AskOption
- One candidate the user can pick.
idis the caller’s stable key (echoed back on pick);labelis what the picker shows and what comes back with the answer. - Atomic
U64Session IdGenerator - Checkpoint
Data - Message
- Migration
Source - Provenance mark for checkpoint data converted on read (T5 migration layer): the payload was written by a pre-M3 binary in an older wire shape.
- Notice
- Display-only notice from an engine mechanism.
- Observation
- What the runtime observed after executing a batch of actions (D15: always
returned once anything ran —
ExecErroris reserved for “nothing ran”). - Plan
Item - A single step in a lightweight plan checklist.
- Retry
Config - RunState
- Run-level state tracking for the react loop.
- Safety
Config - Safety configuration for agent runtime guardrails.
- Session
Config - Session
Id - Unique identifier for an agent session.
- Tool
Call Message - A tool call embedded in an assistant message.
- Tool
Config - Tool
Result Data - Legacy per-result record from the pre-M3 checkpoint payload. Kept so the
T5 migration layer can read old
AfterToolCalls { results }data. - Turn
Context - Pure-data snapshot of a completed turn iteration, passed to turn-end hooks.
- Update
Plan Args - Arguments for the
update_plantool. - Uuid
Session IdGenerator
Enums§
- Action
Format - Which protocol an action came from. The format label travels with every
Actionso mixed backends stay distinguishable in persisted payloads. - Agent
Error - Approval
Decision - AskAnswer
- What the user did with an ask.
- Batch
Status - Batch-level health of an execution round (D15).
- Chat
Message - A chat message in a conversation.
- Checkpoint
Step - Error
Kind - Classifies an
AgentErrorinto a broad category for recovery decisions. - Finish
Reason - Semantic finish reason, replacing scattered
Option<String>matching. - Image
Attachment - Image attachment for multimodal messages.
- Image
Detail - Image detail level.
- Language
- Message
Role - Migration
Kind - Notice
Kind - Notice category — decides how consumers render the notification.
- Observation
Event - The tax-3 channel: observations become events, big payloads stay behind a
reference (D9: no
Errorvariant — refusals and interceptions live inActionOutcome). - Plan
Step Status - Lightweight plan step status — display-only, no execution semantics.
- Response
Format - Response format configuration.
- Risk
Level - RunOutcome
- The outcome of an Agent turn or run.
- Runtime
Event - Unified runtime event — the single event type for both internal and external consumers (frontends, CLIs, tests).
- User
Event - User-space events produced by tools during execution.
Constants§
- CHECKPOINT_
VERSION - The checkpoint payload version this build writes and understands. Payloads
without a
versionfield are pre-versioning and read as 0. - DEFAULT_
TOOL_ TIMEOUT_ MS - Default tool timeout: 10 minutes.
This is a safety net against hung tools; tools should override
timeout_ms()with a value appropriate for their workload.
Traits§
Functions§
- default_
convert_ to_ llm - Default conversion that strips
ChatMessage::Custommessages. - shared_
session_ ids - Process-global numbering for engines that bring no generator of their own.
Type Aliases§
- Agent
Result - Convert
ToLlm Fn - Callback that transforms the message list before it is sent to the LLM.