pub enum TurnStep {
Continue,
Stop {
reason: String,
},
}Expand description
What to do next.
Variants§
Continue
Keep going.
Stop
End the turn, reporting reason.
The reason reaches the host as TurnComplete.stop_reason and is part
of the observable contract — a policy inventing a new one is telling
every consumer something they have no case for, so prefer the existing
vocabulary (max_turns, max_structured_output_retries) unless the
situation genuinely is new.
Implementations§
Trait Implementations§
impl Eq for TurnStep
impl StructuralPartialEq for TurnStep
Auto Trait Implementations§
impl Forget for TurnStep
impl Freeze for TurnStep
impl Move for TurnStep
impl RefUnwindSafe for TurnStep
impl Send for TurnStep
impl Sync for TurnStep
impl Unpin for TurnStep
impl UnsafeUnpin for TurnStep
impl UnwindSafe for TurnStep
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