Param

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

Describes a tool parameter. Apply to method parameters.

Properties

Link copied to clipboard

Description of the parameter. Used by LLM to understand what value to provide.

Link copied to clipboard
val required: Boolean = true

Whether this parameter is required. Defaults to true. For optional parameters, the method parameter should have a default value.