pub struct RunResult {
pub messages: Vec<AgentMessage>,
pub outcome: LoopOutcome,
}Expand description
Result of a completed run: emitted messages plus a typed outcome label.
Returned by run and run_continue. messages is the slice of
messages produced during this run (not the full transcript).
outcome lets callers distinguish a natural close from a budget-driven
one without inspecting message content.
Fields§
§messages: Vec<AgentMessage>§outcome: LoopOutcomeTrait Implementations§
Auto Trait Implementations§
impl Freeze for RunResult
impl RefUnwindSafe for RunResult
impl Send for RunResult
impl Sync for RunResult
impl Unpin for RunResult
impl UnsafeUnpin for RunResult
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