ToolRegistryBuilder

A builder class for creating a ToolRegistry instance. This class provides methods to configure and register tools, either individually or as a list, and then constructs a registry containing the defined tools.

Constructors

Link copied to clipboard
expect constructor()
constructor()
constructor()

Functions

Link copied to clipboard
expect fun build(): ToolRegistry

Finalizes the configuration of the ToolRegistryBuilder and constructs a ToolRegistry instance.

actual fun build(): ToolRegistry
actual fun build(): ToolRegistry
Link copied to clipboard
expect fun tool(tool: Tool<*, *>): ToolRegistryBuilder

Registers a tool to the ToolRegistryBuilder.

actual fun tool(tool: Tool<*, *>): ToolRegistryBuilder
fun ToolRegistry.Builder.tool(toolFunction: ERROR CLASS: Symbol not found for Method, thisRef: Any? = null, name: String? = null, description: String? = null): ToolRegistry.Builder

Registers toolFunction as a tool in the ToolRegistry.

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

Registers a list of tools into the tool registry.

fun tools(instance: Any): ToolRegistryBuilder

Registers a set of tools from the instance in the ToolRegistry .

actual fun tools(toolsList: List<Tool<*, *>>): ToolRegistryBuilder
actual fun tools(toolsList: List<Tool<*, *>>): ToolRegistryBuilder