Class PromptArgument
java.lang.Object
org.apache.juneau.bean.mcp.v20250618.PromptArgument
Declared argument for an MCP prompt.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionArgument description.getName()Argument name.Whether the argument is required.setDescription(String value) Sets the description.Sets the argument name.setRequired(Boolean value) Sets the required flag.
-
Constructor Details
-
PromptArgument
public PromptArgument()
-
-
Method Details
-
getName
Argument name.- Returns:
- The name, or
nullif not set.
-
setName
Sets the argument name.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getDescription
Argument description.- Returns:
- The description, or
nullif not set.
-
setDescription
Sets the description.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getRequired
Whether the argument is required.- Returns:
- The flag, or
nullif not set.
-
setRequired
Sets the required flag.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-