pub struct ModelRouteDecisionPayload {
pub agent_role: String,
pub model_id: String,
pub tier: String,
pub reason: String,
pub signals_digest: String,
pub price_snapshot: PriceSnapshot,
pub est_cost_usd: f64,
pub schema_version: u32,
}Expand description
ProtocolEvent::ModelRouteDecision payload (ADR §D5 observability). Kept
as its own struct (not inlined into the enum variant) so
host_router’s RouteDecision and this wire type can evolve
independently — the seam maps one to the other explicitly.
Fields§
§agent_role: String§model_id: String§tier: String"cheap" | "capable" — string, not host_providers::ModelTier,
to keep this crate dependency-free.
reason: String§signals_digest: StringOpaque digest of the TaskSignal that produced this decision —
enough for a hover tooltip / debug trail, not the raw signal (avoids
leaking prompt text into the protocol log).
price_snapshot: PriceSnapshot§est_cost_usd: f64§schema_version: u32Trait Implementations§
Source§impl Clone for ModelRouteDecisionPayload
impl Clone for ModelRouteDecisionPayload
Source§impl Debug for ModelRouteDecisionPayload
impl Debug for ModelRouteDecisionPayload
Source§impl<'de> Deserialize<'de> for ModelRouteDecisionPayload
impl<'de> Deserialize<'de> for ModelRouteDecisionPayload
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 StructuralPartialEq for ModelRouteDecisionPayload
Auto Trait Implementations§
impl Freeze for ModelRouteDecisionPayload
impl RefUnwindSafe for ModelRouteDecisionPayload
impl Send for ModelRouteDecisionPayload
impl Sync for ModelRouteDecisionPayload
impl Unpin for ModelRouteDecisionPayload
impl UnsafeUnpin for ModelRouteDecisionPayload
impl UnwindSafe for ModelRouteDecisionPayload
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