klyn.llm.ToolRegistry.extractAnnotationValue
method
public static extractAnnotationValue(annotationRaw as String, key as String) as String
Description

Reads a top-level annotation argument without matching quoted contents. Escaped quotes and backslashes in string arguments are decoded.

Parameters
ParameterDescription
annotationRawSerialized annotation declaration.
keyArgument name.
Returns

The value, or an empty string when the argument is absent. Example: ToolRegistry.extractAnnotationValue("@Tool(name='run')", "name").