pub struct GlobalCostSnapshot {
pub total_agents: usize,
pub total_usage: TokenUsage,
pub total_cost: CostBreakdown,
pub global_budget_remaining: Option<f64>,
pub per_agent: Vec<CostSnapshot>,
}Expand description
Global cost snapshot across all agents.
Fields§
§total_agents: usizeNumber of agents tracked.
total_usage: TokenUsageAggregate token usage across all agents.
total_cost: CostBreakdownAggregate cost across all agents.
global_budget_remaining: Option<f64>Remaining global budget in USD, if set.
per_agent: Vec<CostSnapshot>Per-agent cost snapshots.
Trait Implementations§
Source§impl Clone for GlobalCostSnapshot
impl Clone for GlobalCostSnapshot
Source§fn clone(&self) -> GlobalCostSnapshot
fn clone(&self) -> GlobalCostSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlobalCostSnapshot
impl Debug for GlobalCostSnapshot
Source§impl<'de> Deserialize<'de> for GlobalCostSnapshot
impl<'de> Deserialize<'de> for GlobalCostSnapshot
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
Auto Trait Implementations§
impl Freeze for GlobalCostSnapshot
impl RefUnwindSafe for GlobalCostSnapshot
impl Send for GlobalCostSnapshot
impl Sync for GlobalCostSnapshot
impl Unpin for GlobalCostSnapshot
impl UnsafeUnpin for GlobalCostSnapshot
impl UnwindSafe for GlobalCostSnapshot
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