Tool
annotationin packageklyn.llm
public annotation 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 |
Human-readable tool description. |
| public property |
name |
External tool name visible by the LLM provider. |