#[non_exhaustive]pub struct TurnOutcome {
pub turn_id: TurnId,
pub context: Context,
pub result: TurnResult,
pub uncommitted_tool_batch: Option<ToolBatch>,
}Expand description
Materials returned on completion or controlled interruption.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.turn_id: TurnIdIdentity supplied by the caller.
context: ContextAll successfully committed materials; still editable.
result: TurnResultThe selected terminal result.
uncommitted_tool_batch: Option<ToolBatch>Complete current batch whose declarations, but not results, were committed.
Present when the run stopped before the batch finished processing, or when its results failed validation or the commit. A batch whose tools all returned and whose after processors all ran is committed even if a cancellation or deadline is seen at that point, and is not returned here.
Trait Implementations§
Auto 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