onToolCallResult
suspend fun onToolCallResult(runId: String, toolCallId: String?, tool: Tool<*, *>, toolArgs: ToolArgs, result: ToolResult?)(source)
Notifies all registered tool handlers about the result of a tool call.
Parameters
runId
The unique identifier for the current run.
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