Skip to main content

Module types

Module types 

Source
Expand description

Agent 核心类型定义

定义统一的 Agent 输入、输出和状态类型

Re-exports§

pub use error::ErrorCategory;
pub use error::ErrorContext;
pub use error::GlobalError;
pub use error::GlobalResult;
pub use event::EventBuilder;
pub use event::GlobalEvent;
pub use event::execution;
pub use event::lifecycle;
pub use event::message;
pub use event::plugin;
pub use event::state;
pub use global::GlobalMessage;
pub use global::MessageContent;
pub use global::MessageMetadata;

Modules§

error
全局错误类型系统
event
全局事件系统
global
全局消息协议

Structs§

AgentOutput
Agent 输出类型
ChatCompletionRequest
LLM 聊天完成请求
ChatCompletionResponse
LLM 聊天完成响应
ChatMessage
聊天消息
ReasoningStep
推理步骤
TokenUsage
Token 使用统计
ToolCall
LLM 工具调用
ToolDefinition
LLM 工具定义
ToolUsage
工具使用记录

Enums§

AgentInput
Agent 输入类型
AgentState
Agent 状态机
InputType
支持的输入类型
InterruptResult
中断处理结果
OutputContent
输出内容类型
OutputType
支持的输出类型
ReasoningStepType
推理步骤类型

Traits§

LLMProvider
LLM Provider trait - 定义 LLM 提供商接口