Class McpPromptOutcome
java.lang.Object
org.apache.juneau.rest.server.mcp.McpPromptOutcome
Revision-neutral result of a
prompts/get invocation.
Supersedes the wire-level GetPromptResult bean.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe human-readable outcome description.The prompt's rendered messages.setDescription(String value) Sets the outcome description.setMessages(List<McpPromptMessage> value) Sets the prompt's rendered messages.
-
Constructor Details
-
McpPromptOutcome
public McpPromptOutcome()
-
-
Method Details
-
getDescription
The human-readable outcome description.- Returns:
- The description, or
null if not set.
-
setDescription
Sets the outcome description.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object.
-
getMessages
The prompt's rendered messages.- Returns:
- The messages, or
null if not set. Anull value is distinct from an empty list: it means the wire property is omitted entirely.
-
setMessages
Sets the prompt's rendered messages.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object.
-