Skip to main content

Module types

Module types 

Source

Structs§

AgentConfig
ApprovalRequest
AtomicU64SessionIdGenerator
CheckpointData
Message
PlanItem
A single step in a lightweight plan checklist.
RetryConfig
SafetyConfig
Safety configuration for agent runtime guardrails.
SessionConfig
SessionId
ToolCallMessage
ToolConfig
ToolResultData
TurnContext
Pure-data snapshot of a completed turn iteration, passed to turn-end hooks.
UpdatePlanArgs
Arguments for the update_plan tool.
UuidSessionIdGenerator

Enums§

AgentError
ApprovalDecision
ChatMessage
CheckpointStep
ErrorKind
Classifies an AgentError into a broad category for recovery decisions.
FinishReason
Semantic finish reason, replacing scattered Option<String> matching.
ImageAttachment
ImageDetail
Language
MessageRole
PlanStepStatus
Lightweight plan step status — display-only, no execution semantics.
ResponseFormat
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§

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.

Type Aliases§

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