Skip to content
1 min read · 179 words

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

PropertyTypeDescription
callIdstringCorrelates with the associated ToolCall id, if known. Empty string when not provided.
durationMsnumberDuration of the execution in milliseconds.
endedAtDateTimeWhen execution ended.
isErrorbooleantrue when the handler threw an error; the rejection reason is @nhtio/adk!E_TOOL_DOWNSTREAM_ERROR.
startedAtDateTimeWhen execution started.
toolNamestringName of the tool that was executed.
turnIdstringID of the turn in which the tool was executed.