pub struct SubagentBreakdown {
pub label: String,
pub state: SubagentState,
pub count: usize,
pub input_tokens: u64,
pub output_tokens: u64,
pub cache_read_tokens: u64,
pub cache_write_tokens: u64,
pub cost_usd: f64,
pub usage_metrics_available: bool,
pub cost_estimate_unverified: bool,
}Fields§
§label: String§state: SubagentState§count: usize§input_tokens: u64§output_tokens: u64§cache_read_tokens: u64§cache_write_tokens: u64§cost_usd: f64§usage_metrics_available: bool§cost_estimate_unverified: boolImplementations§
Source§impl SubagentBreakdown
impl SubagentBreakdown
pub fn total_input_tokens(&self) -> u64
pub fn state_label(&self) -> String
pub fn display_label(&self) -> String
pub fn format_tokens(&self) -> String
pub fn format_cost(&self) -> String
Trait Implementations§
Source§impl Clone for SubagentBreakdown
impl Clone for SubagentBreakdown
Auto Trait Implementations§
impl Freeze for SubagentBreakdown
impl RefUnwindSafe for SubagentBreakdown
impl Send for SubagentBreakdown
impl Sync for SubagentBreakdown
impl Unpin for SubagentBreakdown
impl UnsafeUnpin for SubagentBreakdown
impl UnwindSafe for SubagentBreakdown
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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