tool
Registers a tool to the ToolRegistryBuilder.
Return
The updated ToolRegistryBuilder instance, allowing for further tool registration or subsequent actions.
Parameters
tool
The tool to be registered. This should be an instance of the Tool class, parameterized with argument and result types.
fun ToolRegistry.Builder.tool(toolFunction: ERROR CLASS: Symbol not found for Method, thisRef: Any? = null, name: String? = null, description: String? = null): ToolRegistry.Builder(source)
Registers toolFunction as a tool in the ToolRegistry.