Skip to main content

Module react

Module react 

Source
Expand description

ReAct (Reasoning + Acting) 框架

ReAct 是一种将推理和行动相结合的智能代理架构。 代理通过“思考-行动-观察“循环来解决问题。

Modules§

patterns
Agent 执行模式
prelude
便捷 prelude 模块
tools
ReAct 内置工具实现

Structs§

AgentOutput
Agent 输出
AutoAgent
AutoAgent - 自动选择最佳策略的智能 Agent
AutoAgentResult
AutoAgent 执行结果
CalculatorTool
计算器工具
ChainAgent
链式 Agent 执行模式
ChainResult
链式执行结果
ChainStepResult
链式执行步骤结果
CustomTool
自定义工具
CustomToolBuilder
自定义工具构建器
DateTimeTool
日期时间工具
EchoTool
Echo 工具 (测试用)
JsonTool
JSON 工具
MapReduceAgent
MapReduce Agent
MapReduceResult
MapReduce 执行结果
MapStepResult
Map 步骤结果
ParallelAgent
并行 Agent 执行模式
ParallelResult
并行执行结果
ParallelStepResult
并行执行步骤结果
ReActActor
ReAct Actor
ReActActorRef
ReAct Actor 引用包装
ReActActorState
ReAct Actor 内部状态
ReActActorStatus
ReAct Actor 状态
ReActAgent
ReAct Agent 核心实现
ReActAgentBuilder
ReAct Agent 构建器
ReActConfig
ReAct 配置
ReActResult
ReAct 执行结果
ReActStep
ReAct 执行步骤
StringTool
字符串工具

Enums§

AgentOutputMetadata
Agent 输出元数据
AgentUnit
Agent 执行单元
AggregationStrategy
聚合策略
ExecutionMode
执行模式
ReActMessage
ReAct Actor 消息类型
ReActStepType
ReAct 步骤类型
TaskComplexity
任务复杂度

Traits§

ReActTool
ReAct 工具 trait

Functions§

chain_agents
创建简单的链式 Agent
parallel_agents
创建简单的并行 Agent
parallel_agents_with_summarizer
创建带 LLM 聚合的并行 Agent
spawn_react_actor
启动 ReAct Actor