pub struct RoundMetrics {Show 14 fields
pub round_id: String,
pub session_id: String,
pub model: String,
pub started_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
pub token_usage: TokenUsage,
pub tool_calls: Vec<ToolCallMetrics>,
pub status: RoundStatus,
pub error: Option<String>,
pub duration_ms: Option<u64>,
pub prompt_cached_tool_outputs: u32,
pub prompt_cached_tool_tokens_saved: u32,
pub compression_count: u32,
pub tokens_saved: u32,
}Expand description
Metrics for a single conversation round
Fields§
§round_id: StringUnique round identifier
session_id: StringSession this round belongs to
model: StringModel used for this round
started_at: DateTime<Utc>When the round started
completed_at: Option<DateTime<Utc>>When the round completed
token_usage: TokenUsageToken usage for this round
tool_calls: Vec<ToolCallMetrics>Tool calls made during this round
status: RoundStatusRound execution status
error: Option<String>Error message if round failed
duration_ms: Option<u64>Round duration in milliseconds
prompt_cached_tool_outputs: u32Number of tool outputs compacted into prompt-side cache summaries in this round.
prompt_cached_tool_tokens_saved: u32Tokens saved by prompt-side tool output compaction in this round.
compression_count: u32Number of context compression events applied during this round.
tokens_saved: u32Tokens saved by context compression during this round.
Trait Implementations§
Source§impl Clone for RoundMetrics
impl Clone for RoundMetrics
Source§fn clone(&self) -> RoundMetrics
fn clone(&self) -> RoundMetrics
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 RoundMetrics
impl Debug for RoundMetrics
Source§impl<'de> Deserialize<'de> for RoundMetrics
impl<'de> Deserialize<'de> for RoundMetrics
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
Source§impl PartialEq for RoundMetrics
impl PartialEq for RoundMetrics
Source§fn eq(&self, other: &RoundMetrics) -> bool
fn eq(&self, other: &RoundMetrics) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RoundMetrics
impl Serialize for RoundMetrics
impl StructuralPartialEq for RoundMetrics
Auto Trait Implementations§
impl Freeze for RoundMetrics
impl RefUnwindSafe for RoundMetrics
impl Send for RoundMetrics
impl Sync for RoundMetrics
impl Unpin for RoundMetrics
impl UnsafeUnpin for RoundMetrics
impl UnwindSafe for RoundMetrics
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