pub struct TurnDetail {Show 19 fields
pub turn_number: usize,
pub timestamp: DateTime<Utc>,
pub model: String,
pub input_tokens: u64,
pub output_tokens: u64,
pub cache_write_5m_tokens: u64,
pub cache_write_1h_tokens: u64,
pub cache_read_tokens: u64,
pub context_size: u64,
pub cache_hit_rate: f64,
pub cost: f64,
pub cost_breakdown: TurnCostBreakdown,
pub stop_reason: Option<String>,
pub is_agent: bool,
pub is_compaction: bool,
pub context_delta: i64,
pub user_text: Option<String>,
pub assistant_text: Option<String>,
pub tool_names: Vec<String>,
}Fields§
§turn_number: usize§timestamp: DateTime<Utc>§model: String§input_tokens: u64§output_tokens: u64§cache_write_5m_tokens: u64§cache_write_1h_tokens: u64§cache_read_tokens: u64§context_size: u64§cache_hit_rate: f64§cost: f64§cost_breakdown: TurnCostBreakdown§stop_reason: Option<String>§is_agent: bool§is_compaction: bool§context_delta: i64§user_text: Option<String>§assistant_text: Option<String>§tool_names: Vec<String>Trait Implementations§
Source§impl Debug for TurnDetail
impl Debug for TurnDetail
Auto Trait Implementations§
impl Freeze for TurnDetail
impl RefUnwindSafe for TurnDetail
impl Send for TurnDetail
impl Sync for TurnDetail
impl Unpin for TurnDetail
impl UnsafeUnpin for TurnDetail
impl UnwindSafe for TurnDetail
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
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