Tool
annotation in package klyn.llm

    public annotation Tool:

Tool

Declares that a method can be exposed as an LLM tool.

The `name` attribute is the canonical external name sent to providers. When omitted, Klyn derives a conventional name from the interface and method.

    interface MathTools:
    @Tool(name="math.add", description="Add two integers")
    public add(a as Int, b as Int) as String

Properties

Modifier and Type | Member | Description
--- | --- | ---
public property | description `description as String = ""` | Human-readable tool description.
public property | name `name as String = null` | External tool name visible by the LLM provider.