pub struct RouteExplanation {
pub trace_id: String,
pub mode: String,
pub policy: String,
pub served_model: Option<String>,
pub served_rung: Option<u32>,
pub escalations: u32,
pub total_cost_usd: f64,
pub baseline_usd: f64,
pub savings_usd: f64,
pub attempts: Vec<AttemptExplanation>,
pub summary: String,
}Expand description
A structured, agent-readable explanation of a single routing decision — why the ladder
went where it did, built purely from a sealed Trace.
Fields§
§trace_id: String§mode: String§policy: String§served_model: Option<String>The model actually served, if any.
served_rung: Option<u32>§escalations: u32§total_cost_usd: f64§baseline_usd: f64§savings_usd: f64§attempts: Vec<AttemptExplanation>Per attempt, in ladder order: what was tried and how it was judged.
summary: StringOne-line human summary.
Trait Implementations§
Source§impl Debug for RouteExplanation
impl Debug for RouteExplanation
Auto Trait Implementations§
impl Freeze for RouteExplanation
impl RefUnwindSafe for RouteExplanation
impl Send for RouteExplanation
impl Sync for RouteExplanation
impl Unpin for RouteExplanation
impl UnsafeUnpin for RouteExplanation
impl UnwindSafe for RouteExplanation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.