pub struct RunReport<S> {
pub session_id: String,
pub model: String,
pub provider: String,
pub final_message: Option<String>,
pub outcome: RunOutcome,
pub stopped_by: Option<Bound>,
pub usage: RunUsage,
pub sink: S,
}Expand description
What a completed run produced, alongside the sink it wrote to.
Fields§
§session_id: String§model: String§provider: String§final_message: Option<String>The assistant’s final message, absent when the run failed — and absent
on a typed turn, where the answer is
OutputReport::value rather than prose.
outcome: RunOutcome§stopped_by: Option<Bound>Which bound ended the run, when one did rather than the work.
Neither field implies the other: a bounded run usually failed for want
of a final message, but see Bound::TokenBudget, which a run that
answered can carry.
usage: RunUsageWhat the run reported spending. Present whether it succeeded or not: a turn that failed on its fourth round still spent the first three.
sink: SImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for RunReport<S>where
S: Freeze,
impl<S> RefUnwindSafe for RunReport<S>where
S: RefUnwindSafe,
impl<S> Send for RunReport<S>where
S: Send,
impl<S> Sync for RunReport<S>where
S: Sync,
impl<S> Unpin for RunReport<S>where
S: Unpin,
impl<S> UnsafeUnpin for RunReport<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for RunReport<S>where
S: 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