BeforeModelCallEvent
Defined in: src/hooks/events.ts:282
Event triggered just before the model is invoked. Fired before sending messages to the model for inference.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BeforeModelCallEvent(data): BeforeModelCallEvent;Defined in: src/hooks/events.ts:287
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
data | { agent: LocalAgent; model: Model; } |
data.agent | LocalAgent |
data.model | Model |
Returns
Section titled “Returns”BeforeModelCallEvent
Overrides
Section titled “Overrides”Properties
Section titled “Properties”readonly type: "beforeModelCallEvent";Defined in: src/hooks/events.ts:283
readonly agent: LocalAgent;Defined in: src/hooks/events.ts:284
readonly model: Model;Defined in: src/hooks/events.ts:285
Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”toJSON(): Pick<BeforeModelCallEvent, "type">;Defined in: src/hooks/events.ts:297
Serializes for wire transport, excluding the agent reference. Called automatically by JSON.stringify().
Returns
Section titled “Returns”Pick<BeforeModelCallEvent, "type">