pub struct Invocation {
pub turns: Vec<TurnRecord>,
pub total_usage: Usage,
pub total_cost: Cost,
pub total_duration: Duration,
pub final_response: Option<String>,
pub stop_reason: StopReason,
pub model: ModelSpec,
}Expand description
Complete trace of an agent run, built by TrajectoryCollector.
Fields§
§turns: Vec<TurnRecord>All turns in execution order.
total_usage: UsageAggregated token usage across all turns.
total_cost: CostAggregated cost across all turns.
total_duration: DurationWall-clock duration of the entire run.
final_response: Option<String>Extracted text from the final assistant message, if any.
stop_reason: StopReasonStop reason from the final turn.
model: ModelSpecModel used for this run.
Trait Implementations§
Source§impl Clone for Invocation
impl Clone for Invocation
Source§fn clone(&self) -> Invocation
fn clone(&self) -> Invocation
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 Invocation
impl Debug for Invocation
Source§impl<'de> Deserialize<'de> for Invocation
impl<'de> Deserialize<'de> for Invocation
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 Invocation
impl RefUnwindSafe for Invocation
impl Send for Invocation
impl Sync for Invocation
impl Unpin for Invocation
impl UnsafeUnpin for Invocation
impl UnwindSafe for Invocation
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