14 lines
488 B
Rust
14 lines
488 B
Rust
//! ReAct (Reason + Act) agent loop for structured tool use.
|
|
//!
|
|
//! The agent alternates between a **thought** phase (reasoning about what to do)
|
|
//! and an **action** phase (calling tools). Observations from tool results feed
|
|
//! back into the next thought, enabling multi-step reasoning.
|
|
|
|
pub mod hooks;
|
|
pub mod loop_core;
|
|
pub mod types;
|
|
|
|
pub use hooks::{Hook, HookAction, NoopHook, ToolCallAction, TracingHook};
|
|
pub use loop_core::ReactAgent;
|
|
pub use types::{ReactConfig, ReactStep};
|