Re-exports§
pub use crate::engine::AgentBuilder;pub use crate::engine::AgentRuntime;pub use crate::engine::AgentSession;pub use crate::engine::AllowAllApprovalHandler;pub use crate::engine::DenyAllApprovalHandler;pub use crate::tool::AutoContinueTool;pub use crate::tool::DenyAllToolPolicy;pub use crate::tool::Tool;pub use crate::tool::ToolContext;pub use crate::tool::ToolDecision;pub use crate::tool::ToolPolicy;pub use crate::tool::ToolRegistry;pub use crate::tool::TypedTool;pub use crate::types::AgentConfig;pub use crate::types::AgentError;pub use crate::types::AgentResult;pub use crate::types::Language;pub use crate::types::Message;pub use crate::types::RuntimeEvent;pub use crate::types::TurnContext;pub use crate::types::UserEvent;
Structs§
- Chat
Request - Unified chat request format.
- Chat
Response - Unified non-streaming response format.
- Chat
Stream - Streaming response wrapper.
- Session
Id - Unique identifier for an agent session.
- 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.
Enums§
- Chat
Message - A chat message in a conversation.
- 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. - Message
Role - RunOutcome
- The outcome of an Agent turn or run.
Traits§
- LlmProvider
Trait - LLM Provider unified interface.