onToolCallResult

fun onToolCallResult(handler: suspend (eventContext: ToolCallResultContext) -> Unit)(source)

Append handler called when a tool call completes successfully.


var onToolCallResult: suspend (tool: Tool<*, *>, toolArgs: ToolArgs, result: ToolResult?) -> Unit(source)

Deprecated

Please use onToolCallResult() instead

Replace with

onToolCallResult(handler)

Deprecated variable representing a handler invoked when a tool call is completed successfully. The handler is a suspend function with parameters for the tool, its arguments, and the result of the tool call.

See also