pub struct ResolvedReasoning { /* private fields */ }Expand description
A resolved reasoning decision that keeps every side of the story: what the member asked for, which tier the selector landed on, what the provider is actually able to be told, and where the decision came from.
Implementations§
Source§impl ResolvedReasoning
impl ResolvedReasoning
Sourcepub fn router(&self) -> Option<&RouterIdentity>
pub fn router(&self) -> Option<&RouterIdentity>
The Router that chose this tier, if the decision came from one.
pub const fn requested(&self) -> RequestedReasoning
Sourcepub const fn effective(&self) -> EffectiveReasoning
pub const fn effective(&self) -> EffectiveReasoning
The tier the selector landed on. This is a CodeWhale-side selector value; it is not automatically what the provider is told.
Sourcepub const fn provider_control(&self) -> ProviderReasoningControl
pub const fn provider_control(&self) -> ProviderReasoningControl
How much reasoning control the route actually expresses.
Sourcepub const fn provider_effective(&self) -> ProviderEffectiveReasoning
pub const fn provider_effective(&self) -> ProviderEffectiveReasoning
What the provider is actually asked for. On an enabled/disabled route
(Z.AI GLM) both high and max land here as enabled — a receipt must
report this, not the selector tier, as the provider-effective control.
pub const fn source(&self) -> EffectiveReasoningSource
Sourcepub const fn capability_normalized(&self) -> bool
pub const fn capability_normalized(&self) -> bool
Whether the route’s real capability changed the requested tier.
Trait Implementations§
Source§impl Clone for ResolvedReasoning
impl Clone for ResolvedReasoning
Source§fn clone(&self) -> ResolvedReasoning
fn clone(&self) -> ResolvedReasoning
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 ResolvedReasoning
impl Debug for ResolvedReasoning
Source§impl<'de> Deserialize<'de> for ResolvedReasoning
impl<'de> Deserialize<'de> for ResolvedReasoning
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 ResolvedReasoning
Source§impl PartialEq for ResolvedReasoning
impl PartialEq for ResolvedReasoning
Source§impl Serialize for ResolvedReasoning
impl Serialize for ResolvedReasoning
impl StructuralPartialEq for ResolvedReasoning
Auto Trait Implementations§
impl Freeze for ResolvedReasoning
impl RefUnwindSafe for ResolvedReasoning
impl Send for ResolvedReasoning
impl Sync for ResolvedReasoning
impl Unpin for ResolvedReasoning
impl UnsafeUnpin for ResolvedReasoning
impl UnwindSafe for ResolvedReasoning
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