callTool
inline suspend fun <TResult> AIAgentLLMWriteSession.callTool(toolFunction: KFunction<TResult>, vararg args: Any?): SafeToolFromCallable.Result<TResult>(source)
Invokes a specified tool function within the AI Agent's write session context.
Return
The result of executing the specified tool function.
Parameters
TResult
The return type of the tool function being called.
toolFunction
The tool function to be executed.
args
The arguments to pass to the tool function.