Builder

Builder class to construct and manage a registry of tools.

This class allows for the registration of tools in a controlled manner. It ensures that each tool added to the registry has a unique name.

Functions

Link copied to clipboard
fun tool(tool: Tool<*, *>)

Add a tool to the registry

Link copied to clipboard
fun ToolRegistry.Builder.tool(toolFunction: KFunction<*>, json: Json = Json, thisRef: Any? = null, name: String? = null, description: String? = null)

Registers a tool in the ToolRegistry using a given function and optional parameters to customize the tool's properties.

Link copied to clipboard
fun tools(toolsList: List<Tool<*, *>>)

Add multiple tools to the registry

Link copied to clipboard
fun ToolRegistry.Builder.tools(toolSet: ToolSet, json: Json = Json)

Registers a set of tools in the ToolRegistry using a given ToolSet.