Skip to content

Function: toolExecutionEnd()

@providerprotocol/ai


@providerprotocol/ai / @providerprotocol/ai / toolExecutionEnd

toolExecutionEnd(toolCallId, toolName, result, isError, timestamp, index): StreamEvent

Defined in: src/types/stream.ts:437

Creates a tool execution end stream event.

string

Unique identifier for the tool call

string

Name of the tool that was executed

unknown

The result from the tool execution

boolean

Whether the execution resulted in an error

number

End timestamp in milliseconds

number = 0

Content block index (default: 0)

StreamEvent

A tool_execution_end StreamEvent