Package io.openliberty.mcp.annotations
Annotation Interface Schema
Augment the schema used for an object when it is part of a tool argument or structured output.
All tools have an input schema derived from the types of its tool arguments. Tools with structured content also have an output schema derived from its return type. Generally the schema is created by looking at the structure of the types and how they are serialized by JSON-B. This annotation allows the created schema for a class to be overridden or augmented with a description.
This annotation can be placed:
- on a
Toolmethod to affect its output schema - on a
ToolArgparameter to affect the input schema for that argument - on a class to affect the schema generated for that class
- on a field, setter method or getter method to affect the schema generated for that property (overriding any schema that would have been generated from the type of that property)
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionAugment the schema used for the annotated element with a descriptionOverride the schema used for the annotated element -
Field Summary
Fields
-
Field Details
-
UNSET
- See Also:
-
-
Element Details