Skip to main content

HookEvent

Trait HookEvent 

Source
pub trait HookEvent: Sealed {
    type Event<'a>: Send;
}
Expand description

A hook event type, as the registry keys it (sealed).

Implemented by 'static markers: per-tool events themselves and the 'static form of borrowing events, such as BeforeInvocationEvent<'static>. Event<'a> is the event type callbacks receive.

Required Associated Types§

Source

type Event<'a>: Send

The event type for an agent borrow of lifetime 'a.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl HookEvent for AfterInvocationEvent<'static>

Source§

impl HookEvent for AfterModelCallEvent<'static>

Source§

impl HookEvent for AfterToolCallEvent

Source§

impl HookEvent for AfterToolsEvent<'static>

Source§

impl HookEvent for AgentResultEvent<'static>

Source§

impl HookEvent for BeforeInvocationEvent<'static>

Source§

impl HookEvent for BeforeModelCallEvent<'static>

Source§

impl HookEvent for BeforeToolCallEvent

Source§

impl HookEvent for BeforeToolsEvent<'static>

Source§

impl HookEvent for ContentBlockEvent<'static>

Source§

impl HookEvent for InitializedEvent<'static>

Source§

impl HookEvent for InterruptEvent<'static>

Source§

impl HookEvent for MessageAddedEvent<'static>

Source§

impl HookEvent for ModelMessageEvent<'static>

Source§

impl HookEvent for ModelStreamUpdateEvent<'static>

Source§

impl HookEvent for ToolResultEvent

Source§

impl HookEvent for ToolStreamUpdateEvent