pub enum HookPoint {
BeforeModelStep,
AfterModelStep,
BeforeToolCall,
AfterToolCall,
}Expand description
Lifecycle boundary where a runtime hook can intercept execution.
Variants§
BeforeModelStep
Before compiling and sending a model request for the next turn.
AfterModelStep
After a model step finishes, before tool execution or turn completion.
BeforeToolCall
After tool arguments are received, before executing a tool call.
AfterToolCall
After a tool call executes, before committing its durable result.
Implementations§
Trait Implementations§
impl Copy for HookPoint
Source§impl<'de> Deserialize<'de> for HookPoint
impl<'de> Deserialize<'de> for HookPoint
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 HookPoint
impl StructuralPartialEq for HookPoint
Auto Trait Implementations§
impl Forget for HookPoint
impl Freeze for HookPoint
impl Move for HookPoint
impl RefUnwindSafe for HookPoint
impl Send for HookPoint
impl Sync for HookPoint
impl Unpin for HookPoint
impl UnsafeUnpin for HookPoint
impl UnwindSafe for HookPoint
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.