pub struct ModelSwitchConfig {
pub default: Option<String>,
pub fallback_chain: Vec<String>,
pub retry: RetryConfig,
pub routing: RoutingConfig,
pub smart: SmartConfig,
}Expand description
Config-layered model selection + failure fallback. See docs/superpowers/specs/2026-07-12-intelligent-model-switch-design.md.
Fields§
§default: Option<String>Global default model_ref when an agent has no model_ref.
fallback_chain: Vec<String>Global fallback chain (ordered model_refs).
retry: RetryConfig§routing: RoutingConfig§smart: SmartConfigTrait Implementations§
Source§impl Clone for ModelSwitchConfig
impl Clone for ModelSwitchConfig
Source§fn clone(&self) -> ModelSwitchConfig
fn clone(&self) -> ModelSwitchConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelSwitchConfig
impl Debug for ModelSwitchConfig
Source§impl Default for ModelSwitchConfig
impl Default for ModelSwitchConfig
Source§fn default() -> ModelSwitchConfig
fn default() -> ModelSwitchConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelSwitchConfig
impl<'de> Deserialize<'de> for ModelSwitchConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ModelSwitchConfig
impl RefUnwindSafe for ModelSwitchConfig
impl Send for ModelSwitchConfig
impl Sync for ModelSwitchConfig
impl Unpin for ModelSwitchConfig
impl UnsafeUnpin for ModelSwitchConfig
impl UnwindSafe for ModelSwitchConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more