pub struct ModelTurnFinished<'a> {
pub turn: usize,
pub content: &'a OneOrMany<AssistantContent>,
pub usage: Usage,
}Expand description
Medium-neutral accepted model-turn event.
The turn is canonicalized and parked in the run state, but has not yet been
advanced into tool execution or finalization. A hook may therefore reject a
tool-free turn with ModelTurnAction::Retry.
Fields§
§turn: usizeOne-based model-call index.
content: &'a OneOrMany<AssistantContent>Canonical assistant content parked for hook acceptance.
usage: UsageUsage reported for the turn.
Trait Implementations§
Source§impl<'a> Clone for ModelTurnFinished<'a>
impl<'a> Clone for ModelTurnFinished<'a>
Source§fn clone(&self) -> ModelTurnFinished<'a>
fn clone(&self) -> ModelTurnFinished<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ModelTurnFinished<'a>
Auto Trait Implementations§
impl<'a> Freeze for ModelTurnFinished<'a>
impl<'a> RefUnwindSafe for ModelTurnFinished<'a>
impl<'a> Send for ModelTurnFinished<'a>
impl<'a> Sync for ModelTurnFinished<'a>
impl<'a> Unpin for ModelTurnFinished<'a>
impl<'a> UnsafeUnpin for ModelTurnFinished<'a>
impl<'a> UnwindSafe for ModelTurnFinished<'a>
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