Param

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

Describes a tool parameter. Apply to method parameters. Parameters don't need to be annotated: If they are, the purpose is to provide description and required information.

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.