Configuration for model routing.
More...
#include <entropic/types/config.h>
|
| bool | enabled = false |
| | Enable routing.
|
| |
| std::string | fallback_tier = "lead" |
| | Fallback when routing fails.
|
| |
| std::optional< std::string > | classification_prompt |
| | Custom prompt (nullopt = auto)
|
| |
| std::unordered_map< std::string, std::string > | tier_map |
| | Classification → tier mapping.
|
| |
| std::unordered_map< std::string, std::vector< std::string > > | handoff_rules |
| | Tier handoff rules.
|
| |
Configuration for model routing.
v2.8.0 (gh#87): model-based tier routing is LIVE — ModelOrchestrator:: classify_task feeds the router its classification_prompt and routes on the emitted digit via tier_map. (A prior banner here claimed this struct was deprecated since v2.1.0 and would be removed in v2.2.0 — that was never true; the struct was never removed and v2.8.x actively builds on it.)
- Version
- 2.8.1
Definition at line 577 of file config.h.
◆ classification_prompt
| std::optional<std::string> entropic::RoutingConfig::classification_prompt |
Custom prompt (nullopt = auto)
Definition at line 580 of file config.h.
◆ enabled
| bool entropic::RoutingConfig::enabled = false |
Enable routing.
Definition at line 578 of file config.h.
◆ fallback_tier
| std::string entropic::RoutingConfig::fallback_tier = "lead" |
Fallback when routing fails.
Definition at line 579 of file config.h.
◆ handoff_rules
| std::unordered_map<std::string, std::vector<std::string> > entropic::RoutingConfig::handoff_rules |
Tier handoff rules.
Definition at line 582 of file config.h.
◆ tier_map
| std::unordered_map<std::string, std::string> entropic::RoutingConfig::tier_map |
Classification → tier mapping.
Definition at line 581 of file config.h.
The documentation for this struct was generated from the following file: