pub struct AgentLoopResult { /* private fields */ }Expand description
Result of a completed or policy-blocked agent loop run.
Implementations§
Source§impl AgentLoopResult
impl AgentLoopResult
Sourcepub fn status(&self) -> &AgentLoopStatus
pub fn status(&self) -> &AgentLoopStatus
Final loop status.
Sourcepub fn events(&self) -> &[RuntimeJournalEvent]
pub fn events(&self) -> &[RuntimeJournalEvent]
Retained execution evidence in emission order, excluding live text deltas and rate samples.
Sourcepub fn model_turns_run(&self) -> usize
pub fn model_turns_run(&self) -> usize
Number of model turns started by the loop.
Sourcepub fn final_output(&self) -> Option<&str>
pub fn final_output(&self) -> Option<&str>
Explicit final text returned by the model at loop completion, when present.
Sourcepub fn final_output_json(&self) -> Option<&FinalOutput>
pub fn final_output_json(&self) -> Option<&FinalOutput>
Structured JSON final output recorded by the runtime final-output tool.
Sourcepub fn session_usage(&self) -> Option<&SessionUsage>
pub fn session_usage(&self) -> Option<&SessionUsage>
Latest session usage snapshot when this loop result was produced.
Sourcepub fn into_events(self) -> Vec<RuntimeJournalEvent>
pub fn into_events(self) -> Vec<RuntimeJournalEvent>
Consumes the result and returns retained evidence, excluding transient observations.
Trait Implementations§
Source§impl Clone for AgentLoopResult
impl Clone for AgentLoopResult
Source§impl Debug for AgentLoopResult
impl Debug for AgentLoopResult
impl Eq for AgentLoopResult
Source§impl PartialEq for AgentLoopResult
impl PartialEq for AgentLoopResult
impl StructuralPartialEq for AgentLoopResult
Auto Trait Implementations§
impl Forget for AgentLoopResult
impl Freeze for AgentLoopResultwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<RuntimeJournalEvent>: Freeze,
impl Move for AgentLoopResult
impl RefUnwindSafe for AgentLoopResult
impl Send for AgentLoopResult
impl Sync for AgentLoopResult
impl Unpin for AgentLoopResult
impl UnsafeUnpin for AgentLoopResultwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<RuntimeJournalEvent>: UnsafeUnpin,
impl UnwindSafe for AgentLoopResult
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.