pub struct TurnSummary {
pub input_tokens: u64,
pub output_tokens: u64,
pub cache_read_tokens: u64,
pub cache_creation_tokens: u64,
pub cost_usd: f64,
pub steps: u64,
pub tool_calls: u64,
pub duration_s: f64,
pub compactions: u64,
pub continuations: u64,
}Expand description
What one user turn cost and did, matching the Python TurnSummary fields and order.
Fields§
§input_tokens: u64§output_tokens: u64§cache_read_tokens: u64§cache_creation_tokens: u64§cost_usd: f64§steps: u64§tool_calls: u64§duration_s: f64§compactions: u64§continuations: u64Implementations§
Trait Implementations§
Source§impl Clone for TurnSummary
impl Clone for TurnSummary
Source§impl Debug for TurnSummary
impl Debug for TurnSummary
Source§impl Default for TurnSummary
impl Default for TurnSummary
Source§impl<'de> Deserialize<'de> for TurnSummarywhere
TurnSummary: Default,
impl<'de> Deserialize<'de> for TurnSummarywhere
TurnSummary: Default,
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
Source§impl PartialEq for TurnSummary
impl PartialEq for TurnSummary
Source§impl Serialize for TurnSummary
impl Serialize for TurnSummary
impl StructuralPartialEq for TurnSummary
Auto Trait Implementations§
impl Forget for TurnSummary
impl Freeze for TurnSummary
impl Move for TurnSummary
impl RefUnwindSafe for TurnSummary
impl Send for TurnSummary
impl Sync for TurnSummary
impl Unpin for TurnSummary
impl UnsafeUnpin for TurnSummary
impl UnwindSafe for TurnSummary
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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