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 Forget for Summary
impl Freeze for Summarywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
NonZero<i32>: Freeze,
PhantomData<Turn>: Freeze,
*const LeafNode<String, u64> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, u64)>>: Freeze,
*const LeafNode<CalledTool, ToolCalls> is !null: Freeze,
PhantomData<Box<(CalledTool, ToolCalls)>>: Freeze,
impl Move for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnsafeUnpin for Summarywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
PhantomData<Turn>: UnsafeUnpin,
*const LeafNode<String, u64> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, u64)>>: UnsafeUnpin,
*const LeafNode<CalledTool, ToolCalls> is !null: UnsafeUnpin,
PhantomData<Box<(CalledTool, ToolCalls)>>: UnsafeUnpin,
impl UnwindSafe for Summarywhere
RawVecInner: UnwindSafe,
NonZero<i32>: UnwindSafe,
BTreeMap<String, u64>: UnwindSafe,
BTreeMap<CalledTool, ToolCalls>: UnwindSafe,
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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.