pub struct Summary {
pub backend: Option<Backend>,
pub model: Option<ModelId>,
pub reasoning: Option<Reasoning>,
pub started_at: Option<Timestamp>,
pub ended_at: Option<Timestamp>,
pub duration_ms: Option<Duration>,
pub follow_ups: usize,
pub turns: Vec<Turn>,
pub tokens: BTreeMap<String, u64>,
pub tool_calls: BTreeMap<CalledTool, ToolCalls>,
}Expand description
A saved conversation’s backend, time span, turns, tokens and tool calls.
Fields§
§backend: Option<Backend>§model: Option<ModelId>§reasoning: Option<Reasoning>§started_at: Option<Timestamp>The first and last event’s time.
ended_at: Option<Timestamp>§duration_ms: Option<Duration>§follow_ups: usize§turns: Vec<Turn>Every provider turn in order: the review’s, then each follow-up’s.
tokens: BTreeMap<String, u64>The reported token counters of every attempt, summed.
tool_calls: BTreeMap<CalledTool, ToolCalls>By tool name.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnsafeUnpin for Summary
impl UnwindSafe for Summary
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.