pub enum TurnAction {
Proceed,
Repeat,
RetryWithFeedback(String),
Stop(String),
}Variants§
Proceed
Repeat
Ask again with the same context. Counts as a turn, so the iteration cap still bounds a hook that repeats forever.
RetryWithFeedback(String)
Discard this answer and ask again with a note added as a user message. The reply is not stored, so the session reads as if the retry were the first attempt.
Stop(String)
Trait Implementations§
Source§impl Clone for TurnAction
impl Clone for TurnAction
Source§impl Debug for TurnAction
impl Debug for TurnAction
impl Eq for TurnAction
Source§impl PartialEq for TurnAction
impl PartialEq for TurnAction
impl StructuralPartialEq for TurnAction
Auto Trait Implementations§
impl Forget for TurnAction
impl Freeze for TurnAction
impl Move for TurnAction
impl RefUnwindSafe for TurnAction
impl Send for TurnActionwhere
RawVecInner: Send,
impl Sync for TurnActionwhere
RawVecInner: Sync,
impl Unpin for TurnAction
impl UnsafeUnpin for TurnAction
impl UnwindSafe for TurnActionwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.