Skip to content

BeforeInvocationEvent

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

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:111

ParameterType
data{ agent: LocalAgent; }
data.agentLocalAgent

BeforeInvocationEvent

HookableEvent.constructor

readonly type: "beforeInvocationEvent";

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


readonly agent: LocalAgent;

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

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

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

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

Pick<BeforeInvocationEvent, "type">