AfterToolsEvent
Defined in: src/hooks/events.ts:708
Event triggered after all tools complete execution. Fired after tool results are collected and ready to be added to conversation. Uses reverse callback ordering for proper cleanup semantics.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AfterToolsEvent(data): AfterToolsEvent;Defined in: src/hooks/events.ts:714
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
data | { agent: LocalAgent; message: Message; invocationState: InvocationState; } |
data.agent | LocalAgent |
data.message | Message |
data.invocationState | InvocationState |
Returns
Section titled “Returns”AfterToolsEvent
Overrides
Section titled “Overrides”Properties
Section titled “Properties”readonly type: "afterToolsEvent";Defined in: src/hooks/events.ts:709
readonly agent: LocalAgent;Defined in: src/hooks/events.ts:710
message
Section titled “message”readonly message: Message;Defined in: src/hooks/events.ts:711
invocationState
Section titled “invocationState”readonly invocationState: InvocationState;Defined in: src/hooks/events.ts:712
Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”toJSON(): Pick<AfterToolsEvent, "type" | "message">;Defined in: src/hooks/events.ts:729
Serializes for wire transport, excluding the agent reference and invocationState. Called automatically by JSON.stringify().
Returns
Section titled “Returns”Pick<AfterToolsEvent, "type" | "message">