pub enum AfterModelDecision {
Accept,
ContinueWithInput {
text: String,
},
StopTurn {
reason: String,
final_output: Option<String>,
},
}Expand description
Decision returned by an after_model_step hook.
Variants§
Accept
Accept the model step outcome and follow default runtime control flow.
ContinueWithInput
Continue the loop with a dynamic control note even when the model wanted to stop.
StopTurn
Stop the current turn cleanly (settling any pending tool calls first).
Implementations§
Trait Implementations§
Source§impl Clone for AfterModelDecision
impl Clone for AfterModelDecision
Source§impl Debug for AfterModelDecision
impl Debug for AfterModelDecision
Source§impl<'de> Deserialize<'de> for AfterModelDecision
impl<'de> Deserialize<'de> for AfterModelDecision
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AfterModelDecision
Source§impl PartialEq for AfterModelDecision
impl PartialEq for AfterModelDecision
Source§impl Serialize for AfterModelDecision
impl Serialize for AfterModelDecision
impl StructuralPartialEq for AfterModelDecision
Auto Trait Implementations§
impl Forget for AfterModelDecision
impl Freeze for AfterModelDecision
impl Move for AfterModelDecision
impl RefUnwindSafe for AfterModelDecision
impl Send for AfterModelDecisionwhere
RawVecInner: Send,
impl Sync for AfterModelDecisionwhere
RawVecInner: Sync,
impl Unpin for AfterModelDecision
impl UnsafeUnpin for AfterModelDecision
impl UnwindSafe for AfterModelDecisionwhere
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.