Class McpPromptArgument
java.lang.Object
org.apache.juneau.rest.server.mcp.McpPromptArgument
Revision-neutral declared argument of a prompt.
Supersedes the wire-level PromptArgument bean.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe completer invoked for acompletion/completerequest targeting this argument.The human-readable argument description.getName()The argument name.Whether the argument is required.setCompleter(McpCompleter value) Sets the completer invoked for acompletion/completerequest targeting this argument.setDescription(String value) Sets the argument description.Sets the argument name.setRequired(Boolean value) Sets whether the argument is required.
-
Constructor Details
-
McpPromptArgument
public McpPromptArgument()
-
-
Method Details
-
getName
The argument name.- Returns:
- The name, or
null if not set.
-
setName
Sets the argument name.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object.
-
getDescription
The human-readable argument description.- Returns:
- The description, or
null if not set.
-
setDescription
Sets the argument description.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object.
-
getRequired
Whether the argument is required.- Returns:
- The flag, or
null if not set.
-
setRequired
Sets whether the argument is required.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object.
-
getCompleter
The completer invoked for acompletion/completerequest targeting this argument.This is server behavior only: it is never mapped into a dated
PromptArgumentwire bean. SeeMcpServerConfig.promptCompleter(String, String)for the neutral lookup path that resolves this property by exact prompt/argument name.- Returns:
- The completer, or
null if not set.
-
setCompleter
Sets the completer invoked for acompletion/completerequest targeting this argument.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object.
-