onToolCallFailed
suspend fun onToolCallFailed(runId: String, toolCallId: String?, tool: Tool<*, *>, toolArgs: Any?, 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