onToolCallResult

suspend fun onToolCallResult(tool: Tool<*, *>, toolArgs: Tool.Args, result: ToolResult?)(source)

Notifies all registered tool handlers about the result of a tool call.

Parameters

tool

The tool that was called

toolArgs

The arguments that were provided to the tool

result

The result produced by the tool, or null if no result was produced