-
Notifications
You must be signed in to change notification settings - Fork 2
feat(config): add ComplexityRoutingConfig and LlmRoutingStrategy::Triage #2143
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requestllmzeph-llm crate (Ollama, Claude)zeph-llm crate (Ollama, Claude)
Description
Parent epic: #2141
Phase 2: Config + bootstrap
Tasks
- Add
ComplexityRoutingConfigstruct tozeph-config/src/providers.rs:enabled: bool,triage_provider: Option<String>,bypass_single_provider: boolComplexityTierMappingwithsimple/medium/complex/expert: Option<String>(provider names)
- Add
LlmRoutingStrategy::Triagevariant - Bootstrap: resolve
triage_providername toProviderEntryfrom pool, build viabuild_provider_from_entry() - Config validation:
triage_providermust reference an existing pool entry --migrate-configsupport (no migration needed from legacy — new feature)- Add
[llm.complexity_routing]section toconfig/default.toml(disabled by default)
Key files
crates/zeph-config/src/providers.rscrates/zeph-core/src/bootstrap/provider.rsconfig/default.toml
Acceptance criteria
- Config round-trips through TOML serialize/deserialize
- Validation rejects nonexistent
triage_providername bypass_single_provider = trueskips triage when pool has 1 entry
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestllmzeph-llm crate (Ollama, Claude)zeph-llm crate (Ollama, Claude)