onToolCall

suspend fun onToolCall(tool: Tool<*, *>, toolArgs: Tool.Args)(source)

Notifies all registered tool handlers when a tool is called.

Parameters

tool

The tool that is being called

toolArgs

The arguments provided to the tool