findTool
inline fun <TResult> AIAgentLLMWriteSession.findTool(toolFunction: KFunction<TResult>): SafeToolFromCallable<TResult>(source)
Finds a specific tool within the tool registry using the given tool function and returns it as a safe tool.
Return
A safe representation of the tool associated with the provided function.
Parameters
toolFunction
The reference to the function defining the tool to be located.
Throws
If the tool corresponding to the given function is not found in the tool registry.