HookableEvent
Defined in: src/hooks/events.ts:98
Base class for events that can be subscribed to via the hook system. Only events extending this class are dispatched to HookRegistry callbacks. All current events extend this class. StreamEvent exists as the base for potential future stream-only events that should not be hookable.
Extends
Section titled “Extends”Extended by
Section titled “Extended by”InitializedEventBeforeInvocationEventAfterInvocationEventMessageAddedEventBeforeToolCallEventAfterToolCallEventBeforeModelCallEventAfterModelCallEventBeforeToolsEventAfterToolsEventContentBlockEventModelMessageEventToolResultEventToolStreamUpdateEventAgentResultEventInterruptEventModelStreamUpdateEvent
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new HookableEvent(data?): HookableEvent;Defined in: src/hooks/events.ts:102
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
data? | HookableEventData |
Returns
Section titled “Returns”HookableEvent
Overrides
Section titled “Overrides”Properties
Section titled “Properties”invocationContext?
Section titled “invocationContext?”readonly invocationContext?: InvocationContext;Defined in: src/hooks/events.ts:100
The request this event belongs to (undefined outside one); pass it to InvokeOptions.invocationContext to join it.