pub struct EscalationEvent {
pub timestamp: String,
pub task_summary: String,
pub difficulty_score: f64,
pub task_type: TaskType,
pub estimated_context_tokens: u64,
pub decision: RouteDecision,
pub role: Option<String>,
pub escalation_from: Option<String>,
pub estimated_cost_usd: f64,
pub counterfactual_cost_usd: f64,
}Expand description
One routing decision recorded in the escalation audit ledger.
Fields§
§timestamp: StringISO-8601 timestamp.
task_summary: StringHuman-readable summary of what was asked.
difficulty_score: f640.0–1.0 difficulty score from the heuristic.
task_type: TaskTypeClassified task type.
estimated_context_tokens: u64Estimated context window tokens needed.
decision: RouteDecisionThe routing decision made.
role: Option<String>Role that originated this task (if any).
escalation_from: Option<String>Which local model would have been used if not escalated.
estimated_cost_usd: f64Estimated USD cost of the route actually taken (0.0 for local).
counterfactual_cost_usd: f64Estimated USD this task would have cost on the frontier model —
i.e. the cost avoided when routed local. Equals estimated_cost_usd
for escalations.
Trait Implementations§
Source§impl Clone for EscalationEvent
impl Clone for EscalationEvent
Source§fn clone(&self) -> EscalationEvent
fn clone(&self) -> EscalationEvent
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 EscalationEvent
impl Debug for EscalationEvent
Source§impl<'de> Deserialize<'de> for EscalationEvent
impl<'de> Deserialize<'de> for EscalationEvent
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 EscalationEvent
impl RefUnwindSafe for EscalationEvent
impl Send for EscalationEvent
impl Sync for EscalationEvent
impl Unpin for EscalationEvent
impl UnsafeUnpin for EscalationEvent
impl UnwindSafe for EscalationEvent
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