Expand description
Agent context, checkpoint state, executor callbacks, and runtime evidence contracts.
Structs§
- Agent
Checkpoint - Serializable checkpoint emitted at a durable execution boundary.
- Agent
Context - Lifecycle-wide agent context.
- Agent
Context Handle - Shared compatibility handle for tools explicitly using the Legacy dependency profile.
- Agent
Event - Product-neutral event published by runtime context and projected into streams.
- AgentId
- Runtime agent identifier.
- Agent
Info - Metadata for a registered agent.
- Agent
Resume Cursor - Compact cursor values durable stores use to resume and audit a run.
- Agent
Resume Evidence - Stable resume evidence for durable service runtimes and external session stores.
- Agent
RunState - Checkpointable state owned by the agent graph loop.
- Agent
Stream Queue Registry - Runtime-only stream queue registry placeholder.
- Agent
Tool State - Durable agent-owned state used by tool bundles.
- BusMessage
- Inter-agent or user steering message.
- Context
Handoff Handle - Capability-specific mutable handle for context handoff state.
- Context
Lifecycle State - Context lifecycle fields for enter, exit, streaming, and compaction state.
- Context
Mutation Handles - Runtime-owned collection of isolated context mutation cells for one tool call.
- Dependency
Store - Type-indexed dependency container for runtime and tool contexts.
- Event
Bus - Append-only in-memory event bus.
- Host
Capabilities - Read-only host capability registry supplied to runtime hooks and tool calls.
- Message
Bus - Subscriber/cursor message bus with idempotent send and consume.
- Model
Config - Runtime model configuration stored on
crate::AgentContext. - Note
Store - Serializable note store carried by context state.
- PerThousand
Ratio - Fixed-point ratio stored as parts per thousand.
- Resumable
Export Options - Export options for context restoration state.
- Resumable
State - Serializable state used to restore an agent context.
- Runtime
Ephemeral State - Runtime-only context state excluded from resumable session snapshots.
- Security
Config - Security-related runtime configuration.
- Shell
Environment Snapshot - Dedicated configured shell environment supplied only to authorized tool calls.
- Shell
Review Config - Shell command safety review configuration.
- State
Store - In-memory state store for context domains.
- Task
- Agent-managed task record used by task tools and display snapshots.
- Task
Context Handle - Capability-specific mutable handle for task-manager state.
- Task
Manager - Manager for task lifecycle and dependencies.
- Task
Snapshot - Full task board snapshot transported through custom events.
- Tool
Capability Grant - Host-authorized dependency grants for one Strict tool.
- Tool
Config - Tool-level configuration stored on
crate::AgentContext. - Tool
IdWrapper - Tool call ID normalizer for cross-provider tool call matching.
- Tool
Runtime Snapshot - Narrow, read-only configuration snapshot available during tool execution.
- Tool
Search Context Handle - Capability-specific mutable handle for tool-search state and sideband events.
- Tool
Search Invalidation - Removed tool-search state after host invalidation or refresh.
- Tool
Search State - Loaded tool-search state.
- Usage
Context Handle - Capability-specific mutable handle for usage accounting.
Enums§
- Agent
Execution Decision - Decision returned by an execution checkpoint handler.
- Agent
Executor Error - Executor failure.
- Model
Capability - Model capabilities that influence tool and media behavior.
- Shell
Review Action - Shell review action for commands that require policy intervention.
- Shell
Review Risk Level - Shell review risk threshold.
- Task
Status - Task execution status.
- Tool
Availability Policy - Runtime policy for tools hidden by context-aware availability predicates.
Constants§
- CONTEXT_
HANDOFF_ CAPABILITY - Stable grant name for handoff and auto-load context mutations.
- CONTEXT_
TASKS_ CAPABILITY - Stable grant name for task-manager mutations and snapshots.
- CONTEXT_
TOOL_ SEARCH_ CAPABILITY - Stable grant name for tool-search state and event mutations.
- CONTEXT_
USAGE_ CAPABILITY - Stable grant name for usage-ledger mutations.
- TASK_
SNAPSHOT_ EVENT_ KIND - Custom event kind emitted with a full task board snapshot.
Traits§
- Agent
Executor - Callback contract for persistence, interruption, and durable scheduling.
Type Aliases§
- Deferred
Tool Metadata - Metadata for one deferred tool call.
- Model
Wrapper Metadata - Runtime model wrapper placeholder. Actual wrapper functions are crate-specific dependencies.
- Wrapper
Metadata - Runtime wrapper metadata passed to model/subagent wrapper equivalents.