ToolRegistry
classin packageklyn.llm
public class ToolRegistry extends Object
└ ToolRegistry

Registry of callable tools exposed to an LLM session.

The registry is built from one or more interfaces and their implementations. Reflection is used to generate JSON schemas and to invoke matching methods.

Properties
Modifier and Type Member Description
public readonly property isEmpty
isEmpty as Boolean
Returns true when at least one tool is registered.
Inherited Properties
propertyInherited Properties from Object: type
Methods
Modifier and Type Member Description
public static builder
builder() as ToolRegistryBuilder
Creates a fluent builder.
public definitions
definitions() as ArrayList
Returns provider-ready tool definitions.
public execute
execute(call as ToolCall) as String
Executes one tool call and returns its textual result.
public static extractAnnotationValue
extractAnnotationValue(annotationRaw as String, key as String) as String
Reads a top-level annotation argument without matching quoted contents.
Inherited Methods
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml