pub enum HookPoint {
BeforeToolExecution,
AfterToolExecution,
BeforeLlmRequest,
AfterLlmResponse,
OnSessionStart,
OnSessionEnd,
OnError,
}Expand description
The 7 hook points in the agent lifecycle.
Variants§
BeforeToolExecution
Before a tool is executed.
AfterToolExecution
After a tool has executed.
BeforeLlmRequest
Before an LLM request is sent.
AfterLlmResponse
After an LLM response is received.
OnSessionStart
When a new session starts.
OnSessionEnd
When a session ends.
OnError
When an error occurs.
Trait Implementations§
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 Copy for HookPoint
impl Eq for HookPoint
impl StructuralPartialEq for HookPoint
Auto Trait Implementations§
impl Freeze 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