pub enum StopRecovery {
Accept,
Continue,
RaiseOutputLimit {
max_tokens: u32,
nudge: Option<String>,
},
}Expand description
What to do about a response that stopped early.
Variants§
Accept
Accept the response as it is.
Continue
Send the conversation again as it stands, the response included, so
the model picks up where it stopped — what a provider asks for with
pause_turn. Each continuation is another call of the turn, bounded
by the turn policy’s ceiling on calls.
RaiseOutputLimit
Raise the output limit and ask again.
Fields
Trait Implementations§
Source§impl Clone for StopRecovery
impl Clone for StopRecovery
Source§impl Debug for StopRecovery
impl Debug for StopRecovery
impl Eq for StopRecovery
Source§impl PartialEq for StopRecovery
impl PartialEq for StopRecovery
impl StructuralPartialEq for StopRecovery
Auto Trait Implementations§
impl Forget for StopRecovery
impl Freeze for StopRecovery
impl Move for StopRecovery
impl RefUnwindSafe for StopRecovery
impl Send for StopRecovery
impl Sync for StopRecovery
impl Unpin for StopRecovery
impl UnsafeUnpin for StopRecovery
impl UnwindSafe for StopRecovery
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