gitdataai/libs/agent/modes/mod.rs
ZhenYi 27b9d3e4bd feat(agent): add CoT, Reflexion, and ReWOO reasoning modes
Implement three alternative reasoning strategies:
- Chain-of-Thought (cot): explicit step-by-step reasoning
- Reflexion: self-critique with revise cycle
- ReWOO: reasoning with external observation tokens
2026-04-30 19:15:55 +08:00

14 lines
456 B
Rust

pub mod cot;
pub mod reflexion;
pub mod rewoo;
pub use cot::{CotStep, COT_SYSTEM_PROMPT};
pub use reflexion::{ReflexionCycle, ReflexionStep, REFLEXION_CRITIQUE_PROMPT, REFLEXION_REVISE_PROMPT, REFLEXION_SYSTEM_PROMPT};
pub use rewoo::{ReWooPlan, ReWooStep, ReWooToolCall, REWOO_SYSTEM_PROMPT, extract_plan};
pub trait ModeStep: Send + 'static {
fn chunk_type(&self) -> &'static str;
fn content(&self) -> String;
fn is_final(&self) -> bool;
}