pub struct TurnOutcome {
pub run_id: RunId,
pub output_text: String,
pub output_json: Option<Value>,
pub usage: Usage,
pub steps: usize,
pub cancelled: bool,
}Expand description
Successful or failed turn result.
Fields§
§run_id: RunIdRun id.
output_text: StringFinal assistant text when completed normally.
output_json: Option<Value>Optional structured JSON when schema mode produced parseable content.
usage: UsageAccumulated usage.
steps: usizeSteps consumed.
cancelled: boolWhether cancelled.
Trait Implementations§
Source§impl Clone for TurnOutcome
impl Clone for TurnOutcome
Source§fn clone(&self) -> TurnOutcome
fn clone(&self) -> TurnOutcome
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 TurnOutcome
impl RefUnwindSafe for TurnOutcome
impl Send for TurnOutcome
impl Sync for TurnOutcome
impl Unpin for TurnOutcome
impl UnsafeUnpin for TurnOutcome
impl UnwindSafe for TurnOutcome
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