pub struct LoopOutcome {
pub run_ctx: RunContext,
pub termination: TerminationReason,
pub response: Option<String>,
pub usage: LoopUsage,
pub stats: LoopStats,
/* private fields */
}Expand description
Unified terminal state for loop execution.
Fields§
§run_ctx: RunContext§termination: TerminationReason§response: Option<String>§usage: LoopUsage§stats: LoopStatsImplementations§
Source§impl LoopOutcome
impl LoopOutcome
Sourcepub fn run_finish_result(&self) -> Option<Value>
pub fn run_finish_result(&self) -> Option<Value>
Build a RunFinish.result payload from the unified outcome.
Sourcepub fn to_run_finish_event(self, run_id: String) -> AgentEvent
pub fn to_run_finish_event(self, run_id: String) -> AgentEvent
Project unified outcome into stream RunFinish event.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LoopOutcome
impl RefUnwindSafe for LoopOutcome
impl Send for LoopOutcome
impl Sync for LoopOutcome
impl Unpin for LoopOutcome
impl UnsafeUnpin for LoopOutcome
impl UnwindSafe for LoopOutcome
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