Param

@Target(allowedTargets = [AnnotationTarget.VALUE_PARAMETER])
@Retention(value = AnnotationRetention.RUNTIME)
annotation Param


Annotates a parameter in a Tool function to provide metadata for the tool's schema.

Summary

Public constructors

Param(description: String, required: Boolean)

Public properties

String

A description of what the parameter represents.

Boolean

Indicates whether the parameter is mandatory.

Public constructors

Param

Param(description: String, required: Boolean = true)

Public properties

description

val descriptionString

A description of what the parameter represents. This helps the model understand the expected input.

required

val requiredBoolean

Indicates whether the parameter is mandatory. Defaults to true.