Interface: ToolExecutionEndEvent
Payload emitted on the observability bus when a tool's executor finishes (successfully or not).
Remarks
Fired after the handler returns or throws. When isError is true, the handler threw and the error has been wrapped in @nhtio/adk!E_TOOL_DOWNSTREAM_ERROR. Fires for both @nhtio/adk!Tool and @nhtio/adk!ArtifactTool invocations — the payload is identical.
Properties
| Property | Type | Description |
|---|---|---|
callId | string | Correlates with the associated ToolCall id, if known. Empty string when not provided. |
durationMs | number | Duration of the execution in milliseconds. |
endedAt | DateTime | When execution ended. |
isError | boolean | true when the handler threw an error; the rejection reason is @nhtio/adk!E_TOOL_DOWNSTREAM_ERROR. |
startedAt | DateTime | When execution started. |
toolName | string | Name of the tool that was executed. |
turnId | string | ID of the turn in which the tool was executed. |