pub struct InvocationStats {
pub agents: HashMap<String, usize>,
pub commands: HashMap<String, usize>,
pub skills: HashMap<String, usize>,
pub last_computed: DateTime<Utc>,
pub sessions_analyzed: usize,
}Expand description
Statistics about agent/command/skill invocations across all sessions
Fields§
§agents: HashMap<String, usize>Agent invocations (subagent_type -> count) Example: “technical-writer” -> 5
commands: HashMap<String, usize>Command invocations (/command -> count) Example: “/commit” -> 12
skills: HashMap<String, usize>Skill invocations (skill name -> count) Example: “pdf-generator” -> 3
last_computed: DateTime<Utc>When stats were last computed
sessions_analyzed: usizeNumber of sessions analyzed
Implementations§
Source§impl InvocationStats
impl InvocationStats
Sourcepub fn total_invocations(&self) -> usize
pub fn total_invocations(&self) -> usize
Get total number of invocations across all types
Sourcepub fn merge(&mut self, other: &InvocationStats)
pub fn merge(&mut self, other: &InvocationStats)
Merge another InvocationStats into this one
Trait Implementations§
Source§impl Clone for InvocationStats
impl Clone for InvocationStats
Source§fn clone(&self) -> InvocationStats
fn clone(&self) -> InvocationStats
Returns a duplicate of the value. Read more
1.0.0 · 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 InvocationStats
impl Debug for InvocationStats
Source§impl Default for InvocationStats
impl Default for InvocationStats
Source§fn default() -> InvocationStats
fn default() -> InvocationStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InvocationStats
impl<'de> Deserialize<'de> for InvocationStats
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 InvocationStats
impl RefUnwindSafe for InvocationStats
impl Send for InvocationStats
impl Sync for InvocationStats
impl Unpin for InvocationStats
impl UnsafeUnpin for InvocationStats
impl UnwindSafe for InvocationStats
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