beam_routing
beam_routing selects a ModelConfig for each request.
beam_routing = { path = "../riverbeam/crates/beam_routing" }
| Item | Role |
|---|---|
ModelRouter::new(models, default_model) | A router with the default strategies; duplicate names fail with BEM-042 |
ModelRouter::with_strategies(models, strategies, default_model) | Your own strategy list |
resolve(input, agent_metadata) | Pick a model, or BEM-041 when none fits |
list_models() | The configured models |
RoutingStrategy | Trait: filter(candidates, input, agent_metadata) |
ModalityStrategy, CapabilityStrategy, CostAwareStrategy, FallbackStrategy | The built-in strategies, in default order |
load_models_from_yaml(path) | Read a models: list (BEM-043 / BEM-044 on errors) |
There are no feature flags.
The order of resolution and the file format are in
Model routing. RiverBeam uses its own router
with one built-in model and cannot take yours yet.