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.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BeforeInvocationEvent(data): BeforeInvocationEvent;Defined in: src/hooks/events.ts:110
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
data | { agent: LocalAgent; } |
data.agent | LocalAgent |
Returns
Section titled “Returns”BeforeInvocationEvent
Overrides
Section titled “Overrides”Properties
Section titled “Properties”readonly type: "beforeInvocationEvent";Defined in: src/hooks/events.ts:107
readonly agent: LocalAgent;Defined in: src/hooks/events.ts:108
Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”toJSON(): Pick<BeforeInvocationEvent, "type">;Defined in: src/hooks/events.ts:119
Serializes for wire transport, excluding the agent reference. Called automatically by JSON.stringify().
Returns
Section titled “Returns”Pick<BeforeInvocationEvent, "type">