tool

expect fun tool(tool: Tool<*, *>): ToolRegistryBuilder(source)

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


actual fun tool(tool: Tool<*, *>): ToolRegistryBuilder(source)

Add a tool to the registry

actual fun tool(tool: Tool<*, *>): ToolRegistryBuilder(source)

Add a tool to the registry