pub struct Attempt {
pub rung: u32,
pub model: String,
pub provider: String,
pub in_tokens: u64,
pub out_tokens: u64,
pub cost_usd: f64,
pub latency_ms: u64,
pub gates: Vec<GateResult>,
pub verdict: Verdict,
}Expand description
One attempt at a rung: the model call plus the gates run against its output.
Fields§
§rung: u32Ladder rung (0 = cheapest).
model: StringModel called, provider/model.
provider: StringProvider segment (denormalized for cheap querying).
in_tokens: u64Input tokens consumed.
out_tokens: u64Output tokens produced.
cost_usd: f64USD cost of this model call (excludes gate cost).
latency_ms: u64Wall-clock latency of the model call.
gates: Vec<GateResult>Gate verdicts for this attempt’s output.
verdict: VerdictThe attempt’s overall verdict (the aggregate that drove escalate-or-serve).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Attempt
impl<'de> Deserialize<'de> for Attempt
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 Attempt
Auto Trait Implementations§
impl Freeze for Attempt
impl RefUnwindSafe for Attempt
impl Send for Attempt
impl Sync for Attempt
impl Unpin for Attempt
impl UnsafeUnpin for Attempt
impl UnwindSafe for Attempt
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