public class ToolRegistry extends Object
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.
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | isDeclarativeisDeclarative as Boolean |
Whether this registry contains schemas without executable bindings. |
| public readonly property | isEmptyisEmpty as Boolean |
Returns true when no tool is registered. |
| Modifier and Type | Member | Description |
|---|---|---|
| public static | builderbuilder() as ToolRegistryBuilder |
Creates a fluent builder. |
| public | definitions | Returns provider-ready tool definitions. |
| public | execute | Executes one tool call and returns its textual result. |
| public static | extractAnnotationValue | Reads a top-level annotation argument without matching quoted contents. |
| public static | fromDefinitionsfromDefinitions(definitions as IList<Object>) as ToolRegistry |
Creates a declarative registry for a remote inference transport. |