Skip to content

BeforeInvocationEvent

Defined in: src/hooks/events.ts:106

Event triggered at the beginning of a new agent request. Fired before any model inference or tool execution occurs.

new BeforeInvocationEvent(data): BeforeInvocationEvent;

Defined in: src/hooks/events.ts:110

ParameterType
data{ agent: LocalAgent; }
data.agentLocalAgent

BeforeInvocationEvent

HookableEvent.constructor

readonly type: "beforeInvocationEvent";

Defined in: src/hooks/events.ts:107


readonly agent: LocalAgent;

Defined in: src/hooks/events.ts:108

toJSON(): Pick<BeforeInvocationEvent, "type">;

Defined in: src/hooks/events.ts:119

Serializes for wire transport, excluding the agent reference. Called automatically by JSON.stringify().

Pick<BeforeInvocationEvent, "type">