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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//! Agent module
//!
//! Defines the core [`Agent`] trait, event enum [`AgentEvent`], and callback interface [`AgentCallback`].
//!
//! ## Built-in Agent Paradigms
//!
//! | Module | Paradigm | Feature |
//! |--------|----------|---------|
//! | [`react`] | ReAct (Think-Act-Observe) | always available |
//! | [`plan_execute`] | Plan-and-Execute | `plan-execute` |
//! | [`self_reflection`] | Self-Reflection | `self-reflection` |
//! | [`subagent`] | Subagent system | `subagent` |
//!
//! # Quick Start
//!
//! ```rust,no_run
//! use echo_agent::prelude::*;
//!
//! # fn main() -> echo_agent::error::Result<()> {
//! let agent = ReactAgentBuilder::new()
//! .model("qwen3-max")
//! .system_prompt("You are a helpful assistant")
//! .enable_tools()
//! .build()?;
//!
//! println!("Agent name: {}", agent.name());
//! println!("Model: {}", agent.model_name());
//! # Ok(())
//! # }
//! ```
pub use ;
use HashMap;
use ;
use Mutex as AsyncMutex;
/// SubAgent registry type alias
pub type SubAgentMap = ;
// ── Core sub-modules ───────────────────────────────────────────────────────
// ── Re-exports ──────────────────────────────────────────────────────────────
pub use crateReactAgent;
pub use crateReactAgentBuilder;
pub use crateStructuredAgent;
pub use ;
pub use Runner;
/// Alias for backward compatibility with macros and minimal API.
pub type AgentBuilder = ReactAgentBuilder;