feat(agent): add rule-based query classification for automatic model routing
Classify incoming user messages by keyword/pattern and route to the appropriate model hint automatically, feeding into the existing RouterProvider. Disabled by default; opt-in via [query_classification] config section. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1336c2f03e
commit
6e53341bb1
6 changed files with 260 additions and 8 deletions
|
|
@ -136,6 +136,7 @@ pub fn run_wizard() -> Result<Config> {
|
|||
peripherals: crate::config::PeripheralsConfig::default(),
|
||||
agents: std::collections::HashMap::new(),
|
||||
hardware: hardware_config,
|
||||
query_classification: crate::config::QueryClassificationConfig::default(),
|
||||
};
|
||||
|
||||
println!(
|
||||
|
|
@ -356,6 +357,7 @@ pub fn run_quick_setup(
|
|||
peripherals: crate::config::PeripheralsConfig::default(),
|
||||
agents: std::collections::HashMap::new(),
|
||||
hardware: crate::config::HardwareConfig::default(),
|
||||
query_classification: crate::config::QueryClassificationConfig::default(),
|
||||
};
|
||||
|
||||
config.save()?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue