pub enum AfterModelDecision {
Continue,
Modify(Assistant),
}Expand description
ModelHooks::after_model decision.
Variants§
Continue
Keep assembled output.
Modify(Assistant)
Replace assembled output before commit.
Tool-call identities and names must be nonempty. Model-visible identities may not repeat either within this record or anywhere in the frozen request history. The runtime rejects an invalid value as a typed, registration-attributed hook failure before anything is committed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AfterModelDecision
impl RefUnwindSafe for AfterModelDecision
impl Send for AfterModelDecision
impl Sync for AfterModelDecision
impl Unpin for AfterModelDecision
impl UnsafeUnpin for AfterModelDecision
impl UnwindSafe for AfterModelDecision
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