pub struct SubagentToolStats {
pub read_count: u64,
pub search_count: u64,
pub bash_count: u64,
pub edit_file_count: u64,
pub lines_added: u64,
pub lines_removed: u64,
pub other_tool_count: u64,
pub extra: Map<String, Value>,
}Expand description
Per-category tool-use counts for a subagent run, from tool_use_result.toolStats.
The extra field captures any counters the CLI adds that aren’t modeled here,
so new wire fields deserialize without error.
Fields§
§read_count: u64§search_count: u64§bash_count: u64§edit_file_count: u64§lines_added: u64§lines_removed: u64§other_tool_count: u64§extra: Map<String, Value>Trait Implementations§
Source§impl Clone for SubagentToolStats
impl Clone for SubagentToolStats
Source§fn clone(&self) -> SubagentToolStats
fn clone(&self) -> SubagentToolStats
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 SubagentToolStats
impl Debug for SubagentToolStats
Source§impl Default for SubagentToolStats
impl Default for SubagentToolStats
Source§fn default() -> SubagentToolStats
fn default() -> SubagentToolStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubagentToolStats
impl<'de> Deserialize<'de> for SubagentToolStats
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 SubagentToolStats
impl RefUnwindSafe for SubagentToolStats
impl Send for SubagentToolStats
impl Sync for SubagentToolStats
impl Unpin for SubagentToolStats
impl UnsafeUnpin for SubagentToolStats
impl UnwindSafe for SubagentToolStats
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