pub struct TaskCostSummary {
pub task_id: String,
pub total_tokens: u64,
pub total_tokens_in: u64,
pub total_tokens_out: u64,
pub cost_micros: u64,
pub total_cost_micros: u64,
pub model_calls: u32,
pub total_latency_ms: u64,
}Expand description
Token and model-call totals for one task.
Fields§
§task_id: String§total_tokens: u64§total_tokens_in: u64§total_tokens_out: u64§cost_micros: u64Sum of per-invocation model price-table estimates, never a measured invoice.
total_cost_micros: u64§model_calls: u32§total_latency_ms: u64Implementations§
Source§impl TaskCostSummary
impl TaskCostSummary
Sourcepub const fn cost_classification(&self) -> ReceiptValueClassificationV1
pub const fn cost_classification(&self) -> ReceiptValueClassificationV1
Classifies the cost as an estimate whenever model usage was observed.
Sourcepub const fn baseline_cost_classification(&self) -> ReceiptValueClassificationV1
pub const fn baseline_cost_classification(&self) -> ReceiptValueClassificationV1
No independently modeled or observed legacy baseline exists.
Trait Implementations§
Source§impl Clone for TaskCostSummary
impl Clone for TaskCostSummary
Source§impl Debug for TaskCostSummary
impl Debug for TaskCostSummary
Source§impl Default for TaskCostSummary
impl Default for TaskCostSummary
impl Eq for TaskCostSummary
Source§impl PartialEq for TaskCostSummary
impl PartialEq for TaskCostSummary
impl StructuralPartialEq for TaskCostSummary
Auto Trait Implementations§
impl Forget for TaskCostSummary
impl Freeze for TaskCostSummary
impl Move for TaskCostSummary
impl RefUnwindSafe for TaskCostSummary
impl Send for TaskCostSummary
impl Sync for TaskCostSummary
impl Unpin for TaskCostSummary
impl UnsafeUnpin for TaskCostSummary
impl UnwindSafe for TaskCostSummary
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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 more