pub struct RunSummary {
pub execution_id: String,
pub output: Value,
pub cost: Option<RunSummaryCost>,
pub duration: RunSummaryDuration,
pub tasks: RunSummaryTasks,
}Expand description
Aggregated summary of a run, returned by RunStream::summary (#1033).
Mirrors TS RunSummary from runStream.ts.
Fields§
§execution_id: String§output: Value§cost: Option<RunSummaryCost>None when the stream observed no usage (TaskEnd.usage was
absent or the engine reported the mock provider). When Some,
the SDK currently leaves total_usd at 0 — by_model carries the
raw (input + output) token total per model so callers can multiply
by their own pricing table.
duration: RunSummaryDuration§tasks: RunSummaryTasksTrait Implementations§
Source§impl Clone for RunSummary
impl Clone for RunSummary
Source§fn clone(&self) -> RunSummary
fn clone(&self) -> RunSummary
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 moreAuto Trait Implementations§
impl Freeze for RunSummary
impl RefUnwindSafe for RunSummary
impl Send for RunSummary
impl Sync for RunSummary
impl Unpin for RunSummary
impl UnsafeUnpin for RunSummary
impl UnwindSafe for RunSummary
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