tool
Add a tool to the registry
fun tool(toolFunction: KFunction<*>, thisRef: Any? = null, name: String? = null, description: String? = null): ToolRegistryBuilder(source)
fun tool(toolFunction: Method, thisRef: Any? = null, name: String? = null, description: String? = null): ToolRegistryBuilder(source)
Registers toolFunction as a tool in the ToolRegistry.
See also
Add a tool to the registry
Add a tool to the registry