Class McpPromptSpec
java.lang.Object
org.apache.juneau.rest.server.mcp.McpPromptSpec
Revision-neutral prompt descriptor returned from
prompts/list.
Supersedes the wire-level Prompt bean.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe prompt's declared arguments.The human-readable prompt description.getName()The prompt name, used to routeprompts/getrequests.setArguments(List<McpPromptArgument> value) Sets the prompt's declared arguments.setDescription(String value) Sets the prompt description.Sets the prompt name.
-
Constructor Details
-
McpPromptSpec
public McpPromptSpec()
-
-
Method Details
-
getName
The prompt name, used to routeprompts/getrequests.- Returns:
- The name, or
null if not set.
-
setName
Sets the prompt name.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object.
-
getDescription
The human-readable prompt description.- Returns:
- The description, or
null if not set.
-
setDescription
Sets the prompt description.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object.
-
getArguments
The prompt's declared arguments.- Returns:
- The arguments, or
null if not set. Anull value is distinct from an empty list: it means the wire property is omitted entirely.
-
setArguments
Sets the prompt's declared arguments.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object.
-