ffb8b81f90
* feat(agent): add thinking/reasoning level control per message Users can set reasoning depth via /think:high etc. with resolution hierarchy (inline > session > config > default). 6 levels from Off to Max. Adjusts temperature and system prompt. * fix(agent): prevent thinking level prefix from leaking across interactive turns system_prompt was mutated in place for the first message's thinking directive, then used as the "baseline" for restoration after each interactive turn. This caused the first turn's thinking prefix to persist across all subsequent turns. Fix: save the original system_prompt before any thinking modifications and restore from that saved copy between turns.
17 lines
315 B
Rust
17 lines
315 B
Rust
#[allow(clippy::module_inception)]
|
|
pub mod agent;
|
|
pub mod classifier;
|
|
pub mod dispatcher;
|
|
pub mod loop_;
|
|
pub mod memory_loader;
|
|
pub mod prompt;
|
|
pub mod thinking;
|
|
|
|
#[cfg(test)]
|
|
mod tests;
|
|
|
|
#[allow(unused_imports)]
|
|
pub use agent::{Agent, AgentBuilder};
|
|
#[allow(unused_imports)]
|
|
pub use loop_::{process_message, run};
|