Re-exports§
pub use engine::AgentBuilder;pub use engine::AgentRuntime;pub use engine::AgentSession;pub use engine::DefaultPipeline;pub use engine::InMemorySessionStore;pub use engine::QueueMode;pub use engine::SessionStore;pub use engine::ToolExecutionPipeline;pub use engine::AllowAllApprovalHandler;pub use engine::ApprovalHandler;pub use engine::ConsecutiveFailureRecovery;pub use engine::ContextCompaction;pub use engine::ContextWindowManager;pub use engine::DenyAllApprovalHandler;pub use engine::Middleware;pub use engine::NoopGuard;pub use engine::PostLlmCtx;pub use engine::PreLlmCtx;pub use engine::ReactLoopGuard;pub use engine::RetryOnError;pub use engine::StopOnError;pub use engine::ToolEnforcementConfig;pub use engine::ToolEnforcementMiddleware;pub use engine::ToolErrorAction;pub use engine::ToolErrorRecovery;pub use engine::TurnFactMiddleware;pub use engine::TurnToolLimitMiddleware;pub use engine::UserMessageCtx;pub use tool::AutoContinueTool;pub use tool::DenyAllToolPolicy;pub use tool::Tool;pub use tool::ToolContext;pub use tool::ToolDecision;pub use tool::ToolPolicy;pub use tool::ToolRegistry;pub use tool::TypedTool;pub use tool::UpdatePlanTool;pub use types::RuntimeEvent;pub use types::UserEvent;pub use types::AgentError;pub use types::AgentResult;pub use types::ErrorKind;pub use types::AgentConfig;pub use types::Language;pub use types::Message;pub use types::RetryConfig;pub use types::SafetyConfig;pub use types::SessionConfig;pub use types::TurnContext;pub use llm_trait;
Modules§
Structs§
- Activation
Context - Context passed to
Tool::should_activatefor Deferred tools. - Approval
Request - Checkpoint
Data - Guard
Ctx - Guard context information — built by runtime, passed to guard.
- Plan
Item - A single step in a lightweight plan checklist.
- Reasoning
Config - Reasoning/thinking configuration, unifying reasoning/thinking parameters across vendors.
- Session
Id - Unique identifier for an agent session.
- Tool
Call Message - A tool call embedded in an assistant message.
- Tool
Metadata - Machine-readable metadata for a registered tool — origin, version, and runtime requirements in a stable shape consumers can inspect without parsing the LLM-facing definition JSON.
- Tool
Result Data - Update
Plan Args - Arguments for the
update_plantool. - Usage
Info - Token usage information for an LLM call.
Enums§
- Approval
Decision - Chat
Message - A chat message in a conversation.
- Checkpoint
Step - Content
- Structured content returned by a tool, aligned with the MCP
contentarray shape (no envelope, no orchestration/failure/truncation semantics). - Finish
Reason - Semantic finish reason, replacing scattered
Option<String>matching. - Guard
Decision - Guard decision — returned by guard, executed by base loop.
- Image
Attachment - Image attachment for multimodal messages.
- Image
Detail - Image detail level.
- Message
Role - Plan
Step Status - Lightweight plan step status — display-only, no execution semantics.
- Reasoning
Effort - Reasoning intensity/depth enumeration.
- Response
Format - Response format configuration.
- Risk
Level - RunOutcome
- The outcome of an Agent turn or run.
- Stream
Chunk - Streaming response chunk.
- Tool
Exposure - Visibility level of a tool to the LLM model.