ToolFunction

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class ToolFunction(val name: String = "", val description: String)

Annotation used to mark a function as a tool function.

Tool functions serve as callable operations with defined names and descriptions, which can then be registered and executed within the context of a tool-based system. The annotation provides metadata to identify the function and document its purpose within the system.

Properties

Link copied to clipboard

A detailed description of the tool function's purpose and functionality.

Link copied to clipboard

The name of the tool function. Defaults to an empty string. If left empty, the system may use the annotated function's name as a fallback.