pub struct AgentStats {
pub agent_id: String,
pub total_memories: i64,
pub memories_by_type: HashMap<String, i64>,
pub total_sessions: i64,
pub active_sessions: i64,
pub avg_importance: Option<f32>,
pub oldest_memory_at: Option<String>,
pub newest_memory_at: Option<String>,
}Expand description
Detailed stats for an agent
Fields§
§agent_id: String§total_memories: i64§memories_by_type: HashMap<String, i64>§total_sessions: i64§active_sessions: i64§avg_importance: Option<f32>§oldest_memory_at: Option<String>§newest_memory_at: Option<String>Trait Implementations§
Source§impl Clone for AgentStats
impl Clone for AgentStats
Source§fn clone(&self) -> AgentStats
fn clone(&self) -> AgentStats
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 AgentStats
impl Debug for AgentStats
Source§impl<'de> Deserialize<'de> for AgentStats
impl<'de> Deserialize<'de> for AgentStats
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 AgentStats
impl RefUnwindSafe for AgentStats
impl Send for AgentStats
impl Sync for AgentStats
impl Unpin for AgentStats
impl UnsafeUnpin for AgentStats
impl UnwindSafe for AgentStats
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