pub struct RunResult { /* private fields */ }Expand description
Completed or policy-stopped high-level run result.
Implementations§
Source§impl RunResult
impl RunResult
Sourcepub fn status(&self) -> &AgentLoopStatus
pub fn status(&self) -> &AgentLoopStatus
Returns the terminal or policy-blocked run status.
Sourcepub fn events(&self) -> &[RuntimeEvent]
pub fn events(&self) -> &[RuntimeEvent]
Returns retained SDK-facing evidence in emission order, excluding live deltas and rates.
Sourcepub fn model_turns_run(&self) -> usize
pub fn model_turns_run(&self) -> usize
Returns the number of model turns started by the run.
Sourcepub fn final_output(&self) -> Option<&str>
pub fn final_output(&self) -> Option<&str>
Returns final assistant text when the run produced terminal text.
Sourcepub fn final_output_json(&self) -> Option<&FinalOutput>
pub fn final_output_json(&self) -> Option<&FinalOutput>
Returns the runtime-recorded structured final-output record.
Sourcepub fn session_usage(&self) -> Option<&SessionUsage>
pub fn session_usage(&self) -> Option<&SessionUsage>
Returns the latest authoritative session usage snapshot.
Sourcepub fn into_events(self) -> Vec<RuntimeEvent>
pub fn into_events(self) -> Vec<RuntimeEvent>
Consumes the result and returns retained public events, excluding live deltas and rates.
Trait Implementations§
impl Eq for RunResult
impl StructuralPartialEq for RunResult
Auto Trait Implementations§
impl Forget for RunResult
impl Freeze for RunResult
impl Move for RunResult
impl RefUnwindSafe for RunResult
impl Send for RunResult
impl Sync for RunResult
impl Unpin for RunResult
impl UnsafeUnpin for RunResultwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<RuntimeEvent>: UnsafeUnpin,
impl UnwindSafe for RunResult
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.