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.

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.

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

Builds a ToolRegistry instance containing the tools added to the builder.

actual fun build(): ToolRegistry

Builds a ToolRegistry instance containing the tools added to the builder.

actual fun build(): ToolRegistry

Builds a ToolRegistry instance containing the tools added to the builder.

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

Add a tool to the registry

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

Add a tool to the registry

fun tool(toolFunction: Method, thisRef: Any? = null, name: String? = null, description: String? = null): ToolRegistryBuilder
fun tool(toolFunction: KFunction<*>, thisRef: Any? = null, name: String? = null, description: String? = null): ToolRegistryBuilder

Registers toolFunction as a tool in the ToolRegistry.

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

Add a tool to the registry

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

Add multiple tools to the registry

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

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

Add multiple tools to the registry

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

Add multiple tools to the registry