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§
Structs§
- Agent
Output - Agent 输出类型
- Chat
Completion Request - LLM 聊天完成请求
- Chat
Completion Response - LLM 聊天完成响应
- Chat
Message - 聊天消息
- Reasoning
Step - 推理步骤
- Token
Usage - Token 使用统计
- Tool
Call - LLM 工具调用
- Tool
Definition - LLM 工具定义
- Tool
Usage - 工具使用记录
Enums§
- Agent
Input - Agent 输入类型
- Agent
State - Agent 状态机
- Input
Type - 支持的输入类型
- Interrupt
Result - 中断处理结果
- Output
Content - 输出内容类型
- Output
Type - 支持的输出类型
- Reasoning
Step Type - 推理步骤类型
Traits§
- LLMProvider
- LLM Provider trait - 定义 LLM 提供商接口