Skip to main content

Module types

Module types 

Source
Expand description

Agent 核心类型定义

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

Modules§

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

Structs§

AgentOutput
Agent 输出类型
ChatCompletionRequest
LLM 聊天完成请求
ChatCompletionResponse
LLM 聊天完成响应
ChatMessage
聊天消息
ErrorContext
错误上下文
EventBuilder
事件构建器
GlobalEvent
全局事件类型
MessageMetadata
消息元数据
ReasoningStep
推理步骤
TokenUsage
Token 使用统计
ToolCall
LLM 工具调用
ToolDefinition
LLM 工具定义
ToolUsage
工具使用记录

Enums§

AgentInput
Agent 输入类型
AgentState
Agent 状态机
ErrorCategory
错误分类
GlobalError
全局错误类型
GlobalMessage
全局消息类型
InputType
支持的输入类型
InterruptResult
中断处理结果
MessageContent
消息内容类型
OutputContent
输出内容类型
OutputType
支持的输出类型
ReasoningStepType
推理步骤类型

Traits§

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

Type Aliases§

GlobalResult
全局结果类型