asTool
fun ERROR CLASS: Symbol not found for Method.asTool(thisRef: Any? = null, name: String? = null, description: String? = null): ToolFromCallable<*>(source)
Converts a Java Method into a ToolFromCallable.
Parameters
thisRef
The object instance to use as the 'this' object for the callable.
name
The name of the tool. If not provided, the name will be obtained from Tool.customName property. In the case of the missing attribute or empty name the name of the function is used.
description
The description of the tool. If not provided, the description will be obtained from LLMDescription.description property. In the case of the missing attribute or empty description the name of the function is used as a description.