1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// src/agents/mod.rs
//! Agent system for building autonomous LLM applications.
//!
//! Provides core abstractions and implementations for agents.
//!
//! # Core Concepts
//!
//! - **Agent**: Responsible for planning, deciding what action to execute next.
//! - **AgentExecutor**: Responsible for execution loop (plan → act → observe).
//! - **Tool**: Callable tools that agents can invoke.
//!
//! # Execution Flow
//!
//! ```text
//! Input question
//! ↓
//! Agent.plan() → AgentAction or AgentFinish
//! ↓
//! If Action: execute tool → get observation
//! ↓
//! Add to intermediate_steps
//! ↓
//! Loop until AgentFinish returned
//! ```
pub use ;
pub use ;
pub use ReActAgent;
pub use FunctionCallingAgent;
pub use PlanExecuteAgent;
pub use HandoffManager;
pub use StreamingFunctionCallingAgent;