ToolParameter

annotation class ToolParameter(val description: String, val required: Boolean = true)

Annotation for defining metadata for a tool function parameter.

This annotation is intended to provide descriptive information and constraints for a parameter of a function annotated with ToolFunction. It serves as a mechanism to define behavior and documentation for the parameter within a tool-based system.

Properties

Link copied to clipboard

A textual description of the parameter's purpose or role in the function.

Link copied to clipboard
val required: Boolean = true

Indicates whether this parameter is mandatory. Defaults to true.