Function: toolExecutionEnd()
@providerprotocol/ai / @providerprotocol/ai / toolExecutionEnd
Function: toolExecutionEnd()
Section titled “Function: toolExecutionEnd()”toolExecutionEnd(
toolCallId,toolName,result,isError,timestamp,index):StreamEvent
Defined in: src/types/stream.ts:437
Creates a tool execution end stream event.
Parameters
Section titled “Parameters”toolCallId
Section titled “toolCallId”string
Unique identifier for the tool call
toolName
Section titled “toolName”string
Name of the tool that was executed
result
Section titled “result”unknown
The result from the tool execution
isError
Section titled “isError”boolean
Whether the execution resulted in an error
timestamp
Section titled “timestamp”number
End timestamp in milliseconds
number = 0
Content block index (default: 0)
Returns
Section titled “Returns”A tool_execution_end StreamEvent