pub struct RoutingDecision {
pub requested_model: String,
pub logical_model: String,
pub concrete_model: String,
pub profile: RoutingProfile,
pub confidence: f32,
pub used_default_router: bool,
pub rationale: String,
pub source: ModelSelectionSource,
}Expand description
Explainable routing decision.
Fields§
§requested_model: StringRequested logical id from step/workflow/agent/runtime.
logical_model: StringLogical model id after precedence resolution.
concrete_model: StringConcrete model id used by provider adapter.
profile: RoutingProfileSelected profile.
confidence: f32Confidence score for this routing decision.
used_default_router: boolWhether decision flowed through enact/model-router.
rationale: StringHuman-readable decision rationale.
source: ModelSelectionSourceSource in the model precedence chain.
Trait Implementations§
Source§impl Clone for RoutingDecision
impl Clone for RoutingDecision
Source§fn clone(&self) -> RoutingDecision
fn clone(&self) -> RoutingDecision
Returns a duplicate of the value. Read more
1.0.0 · 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 RoutingDecision
impl Debug for RoutingDecision
Source§impl<'de> Deserialize<'de> for RoutingDecision
impl<'de> Deserialize<'de> for RoutingDecision
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 RoutingDecision
impl RefUnwindSafe for RoutingDecision
impl Send for RoutingDecision
impl Sync for RoutingDecision
impl Unpin for RoutingDecision
impl UnsafeUnpin for RoutingDecision
impl UnwindSafe for RoutingDecision
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