InitializedEvent
Defined in: src/hooks/events.ts:137
Event triggered when an agent has finished initialization. Fired after the agent has been fully constructed and all built-in components have been initialized.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new InitializedEvent(data): InitializedEvent;Defined in: src/hooks/events.ts:141
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
data | { agent: LocalAgent; } |
data.agent | LocalAgent |
Returns
Section titled “Returns”InitializedEvent
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.
Inherited from
Section titled “Inherited from”HookableEvent.invocationContext
readonly type: "initializedEvent";Defined in: src/hooks/events.ts:138
readonly agent: LocalAgent;Defined in: src/hooks/events.ts:139
Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”toJSON(): Pick<InitializedEvent, "type">;Defined in: src/hooks/events.ts:150
Serializes for wire transport, excluding the agent reference. Called automatically by JSON.stringify().
Returns
Section titled “Returns”Pick<InitializedEvent, "type">