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
14 lines
456 B
Rust
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;
|
|
}
|