Skip to main content

Module prelude

Module prelude 

Source

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§

ChatRequest
Unified chat request format.
ChatResponse
Unified non-streaming response format.
ChatStream
Streaming response wrapper.
SessionId
Unique identifier for an agent session.
ToolMetadata
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§

ChatMessage
A chat message in a conversation.
Content
Structured content returned by a tool, aligned with the MCP content array shape (no envelope, no orchestration/failure/truncation semantics).
FinishReason
Semantic finish reason, replacing scattered Option<String> matching.
MessageRole
RunOutcome
The outcome of an Agent turn or run.

Traits§

LlmProviderTrait
LLM Provider unified interface.