ToolSet

interface ToolSet(source)

A marker interface for a set of tools that can be converted to a list of tools via reflection.

Properties

Link copied to clipboard
open val name: String

Retrieves the description of the current class or object from the LLMDescription annotation. If the annotation is not present, defaults to the JVM name of the class.

Functions

Link copied to clipboard
open fun asTools(): List<ToolFromCallable<*>>

Converts all instance methods marked as Tool to a list of tools.

Link copied to clipboard
open fun getTool(name: String): ToolFromCallable<*>

Retrieves a tool by its name from the toolset. If the tool is not found, an exception is thrown.