pub enum RoutingExclusionReason {
Disabled,
CredentialUnavailable,
MissingCapability,
ContextWindowTooSmall,
PricingUnknown,
CostBudgetExceeded,
LatencyUnknown,
LatencyBudgetExceeded,
SessionRouteLocked,
FallbackBlockedAfterSideEffect,
}Expand description
Stable reason why a candidate cannot execute.
Variants§
Disabled
Candidate enabled is false.
A required credential could not be resolved.
MissingCapability
A required RoutingCapability is not advertised.
ContextWindowTooSmall
The candidate’s context window is smaller than min_context_tokens.
PricingUnknown
The candidate has no pricing data and require_known_pricing is true.
CostBudgetExceeded
The candidate’s estimated cost exceeds max_estimated_cost_microusd.
LatencyUnknown
The candidate has no latency estimate and require_known_latency is true.
LatencyBudgetExceeded
The candidate’s estimated latency exceeds max_latency_ms.
SessionRouteLocked
The step has a locked candidate that differs from this candidate.
FallbackBlockedAfterSideEffect
A fallback is blocked because a side effect was already recorded.
Trait Implementations§
Source§impl Clone for RoutingExclusionReason
impl Clone for RoutingExclusionReason
Source§fn clone(&self) -> RoutingExclusionReason
fn clone(&self) -> RoutingExclusionReason
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 moreimpl Copy for RoutingExclusionReason
Source§impl Debug for RoutingExclusionReason
impl Debug for RoutingExclusionReason
Source§impl<'de> Deserialize<'de> for RoutingExclusionReason
impl<'de> Deserialize<'de> for RoutingExclusionReason
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
impl Eq for RoutingExclusionReason
Source§impl Ord for RoutingExclusionReason
impl Ord for RoutingExclusionReason
Source§fn cmp(&self, other: &RoutingExclusionReason) -> Ordering
fn cmp(&self, other: &RoutingExclusionReason) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RoutingExclusionReason
impl PartialEq for RoutingExclusionReason
Source§impl PartialOrd for RoutingExclusionReason
impl PartialOrd for RoutingExclusionReason
Source§impl Serialize for RoutingExclusionReason
impl Serialize for RoutingExclusionReason
impl StructuralPartialEq for RoutingExclusionReason
Auto Trait Implementations§
impl Freeze for RoutingExclusionReason
impl RefUnwindSafe for RoutingExclusionReason
impl Send for RoutingExclusionReason
impl Sync for RoutingExclusionReason
impl Unpin for RoutingExclusionReason
impl UnsafeUnpin for RoutingExclusionReason
impl UnwindSafe for RoutingExclusionReason
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