Annotation Interface ToolParam
@Target({PARAMETER,FIELD,ANNOTATION_TYPE})
@Retention(RUNTIME)
@Documented
public @interface ToolParam
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionExtra JSON Schema to use as this parameter'sadditionalProperties.The description of the tool argument.booleanWhether the tool argument is required.
-
Element Details
-
required
boolean requiredWhether the tool argument is required.- Default:
true
-
description
String descriptionThe description of the tool argument.- Default:
""
-
additionalProperties
String additionalPropertiesExtra JSON Schema to use as this parameter'sadditionalProperties. Handy for aMapparameter: it limits the values while still allowing any key. Must be a JSON object or a boolean. Leave it empty (the default) to keep the generated schema as-is; bad JSON fails when the tool is registered.- Default:
""
-