Class McpPromptOutcome

java.lang.Object
org.apache.juneau.rest.server.mcp.McpPromptOutcome

public class McpPromptOutcome extends Object
Revision-neutral result of a prompts/get invocation.

Supersedes the wire-level GetPromptResult bean.

  • Constructor Details

  • 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 be null to unset the property.
      Returns:
      This object.
    • getMessages

      The prompt's rendered messages.
      Returns:
      The messages, or null if not set. A null 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 be null to unset the property.
      Returns:
      This object.