pub struct AgentSession {Show 17 fields
pub agent_type: String,
pub session_id: String,
pub conversation_id: Option<String>,
pub display_id: String,
pub path: PathBuf,
pub updated: SystemTime,
pub start_timestamp_ms: Option<u64>,
pub end_timestamp_ms: Option<u64>,
pub model: Option<String>,
pub usage: TokenUsage,
pub model_usage: BTreeMap<String, TokenUsage>,
pub tools: BTreeMap<String, usize>,
pub files: BTreeMap<String, usize>,
pub prompt_preview: Option<String>,
pub duration_ms: u64,
pub cwd: Option<String>,
pub last_message_at: Option<String>,
}Expand description
A parsed agent session with metadata, token usage, and tool invocations.
Fields§
§agent_type: String§session_id: String§conversation_id: Option<String>§display_id: String§path: PathBuf§updated: SystemTime§start_timestamp_ms: Option<u64>§end_timestamp_ms: Option<u64>§model: Option<String>§usage: TokenUsage§model_usage: BTreeMap<String, TokenUsage>§tools: BTreeMap<String, usize>§files: BTreeMap<String, usize>§prompt_preview: Option<String>§duration_ms: u64§cwd: Option<String>§last_message_at: Option<String>Trait Implementations§
Source§impl Clone for AgentSession
impl Clone for AgentSession
Source§fn clone(&self) -> AgentSession
fn clone(&self) -> AgentSession
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 AgentSession
impl Debug for AgentSession
Source§impl<'de> Deserialize<'de> for AgentSession
impl<'de> Deserialize<'de> for AgentSession
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 AgentSession
impl RefUnwindSafe for AgentSession
impl Send for AgentSession
impl Sync for AgentSession
impl Unpin for AgentSession
impl UnsafeUnpin for AgentSession
impl UnwindSafe for AgentSession
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