klyn.genai.llm.ToolRegistry.fromDefinitions
method
public static fromDefinitions(definitions as IList<Object>) as ToolRegistry
Description

Creates a declarative registry for a remote inference transport. Definitions are real provider function schemas, structurally validated and independently copied. No implementation/binding is created: execute() always throws IllegalStateException on this explicitly nonexecutable form.

Parameters
ParameterDescription
definitionsUp to 128 JSON-compatible function definitions.
Returns

Registry for LLMRequest.tools, with isDeclarative=true.

Throws
  • ValueException or JSON errors for invalid/excessive definitions.
Example

remote = ToolRegistry.fromDefinitions(JSON.parseList(wireTools))