onToolCallFailure

suspend fun onToolCallFailure(runId: String, toolCallId: String?, tool: Tool<*, *>, toolArgs: ToolArgs, throwable: Throwable)(source)

Notifies all registered tool handlers when a tool call fails with an exception.

Parameters

runId

The unique identifier for the current run.

tool

The tool that failed

toolArgs

The arguments provided to the tool

throwable

The exception that caused the failure