pub struct SubagentTypeAggregate {
pub agent_type: String,
pub count: u64,
pub total_turns: u64,
pub total_cost: f64,
pub total_input_tokens: u64,
pub total_output_tokens: u64,
pub descriptions: Vec<String>,
}Expand description
Per-agent_type rollup of all subagent invocations within one session.
One session may invoke the same agent type (e.g. builder) many times;
each invocation produces its own agent-<id>.jsonl file and one
Subagent instance. This struct groups those instances by agent_type
so the UI can render a single chip per type with a call count.
Subagents whose agent_type is None (no .meta.json sidecar) are
grouped under the literal type "unknown" rather than dropped.
Fields§
§agent_type: String§count: u64§total_turns: u64§total_cost: f64§total_input_tokens: u64§total_output_tokens: u64§descriptions: Vec<String>Descriptions from each invocation of this agent type, in deterministic order (sorted by agent_id). Empty strings are omitted.
Trait Implementations§
Source§impl Clone for SubagentTypeAggregate
impl Clone for SubagentTypeAggregate
Source§fn clone(&self) -> SubagentTypeAggregate
fn clone(&self) -> SubagentTypeAggregate
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 SubagentTypeAggregate
impl Debug for SubagentTypeAggregate
Source§impl<'de> Deserialize<'de> for SubagentTypeAggregate
impl<'de> Deserialize<'de> for SubagentTypeAggregate
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 SubagentTypeAggregate
impl RefUnwindSafe for SubagentTypeAggregate
impl Send for SubagentTypeAggregate
impl Sync for SubagentTypeAggregate
impl Unpin for SubagentTypeAggregate
impl UnsafeUnpin for SubagentTypeAggregate
impl UnwindSafe for SubagentTypeAggregate
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