onToolCallFailure

suspend fun onToolCallFailure(tool: Tool<*, *>, toolArgs: Tool.Args, throwable: Throwable)(source)

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

Parameters

tool

The tool that failed

toolArgs

The arguments provided to the tool

throwable

The exception that caused the failure