Skip to main content

Module types

Module types 

Source

Structs§

Action
One unit of “something the model asked the runtime to do”.
ActionOutcome
Per-action result — the model-visible fate of one Action (D9: a policy refusal lands here, never as a silent drop). Batch-level failure is ExecError; “something went wrong along the way” is an outcome, not an error.
AgentConfig
ApprovalRequest
AskOption
One candidate the user can pick. id is the caller’s stable key (echoed back on pick); label is what the picker shows and what comes back with the answer.
AtomicU64SessionIdGenerator
CheckpointData
Message
MigrationSource
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 — ExecError is reserved for “nothing ran”).
PlanItem
A single step in a lightweight plan checklist.
RetryConfig
RunState
Run-level state tracking for the react loop.
SafetyConfig
Safety configuration for agent runtime guardrails.
SessionConfig
SessionId
Unique identifier for an agent session.
ToolCallMessage
A tool call embedded in an assistant message.
ToolConfig
ToolResultData
Legacy per-result record from the pre-M3 checkpoint payload. Kept so the T5 migration layer can read old AfterToolCalls { results } data.
TurnContext
Pure-data snapshot of a completed turn iteration, passed to turn-end hooks.
UpdatePlanArgs
Arguments for the update_plan tool.
UuidSessionIdGenerator

Enums§

ActionFormat
Which protocol an action came from. The format label travels with every Action so mixed backends stay distinguishable in persisted payloads.
AgentError
ApprovalDecision
AskAnswer
What the user did with an ask.
BatchStatus
Batch-level health of an execution round (D15).
ChatMessage
A chat message in a conversation.
CheckpointStep
ErrorKind
Classifies an AgentError into a broad category for recovery decisions.
FinishReason
Semantic finish reason, replacing scattered Option<String> matching.
ImageAttachment
Image attachment for multimodal messages.
ImageDetail
Image detail level.
Language
MessageRole
MigrationKind
NoticeKind
Notice category — decides how consumers render the notification.
ObservationEvent
The tax-3 channel: observations become events, big payloads stay behind a reference (D9: no Error variant — refusals and interceptions live in ActionOutcome).
PlanStepStatus
Lightweight plan step status — display-only, no execution semantics.
ResponseFormat
Response format configuration.
RiskLevel
RunOutcome
The outcome of an Agent turn or run.
RuntimeEvent
Unified runtime event — the single event type for both internal and external consumers (frontends, CLIs, tests).
UserEvent
User-space events produced by tools during execution.

Constants§

CHECKPOINT_VERSION
The checkpoint payload version this build writes and understands. Payloads without a version field 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§

SessionIdGenerator

Functions§

default_convert_to_llm
Default conversion that strips ChatMessage::Custom messages.
shared_session_ids
Process-global numbering for engines that bring no generator of their own.

Type Aliases§

AgentResult
ConvertToLlmFn
Callback that transforms the message list before it is sent to the LLM.