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.
Properties inherited 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:
No summary.
Methods inherited from Object: fromJson, toDict, toJson, toString, toXml