Class PromptArgument

java.lang.Object
org.apache.juneau.bean.mcp.v20250618.PromptArgument

@Marshalled public class PromptArgument extends Object
Declared argument for an MCP prompt.
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Argument name.
      Returns:
      The name, or null if not set.
    • setName

      public PromptArgument setName(String value)
      Sets the argument name.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getDescription

      Argument description.
      Returns:
      The description, or null if not set.
    • setDescription

      Sets the description.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getRequired

      public Boolean getRequired()
      Whether the argument is required.
      Returns:
      The flag, or null if not set.
    • setRequired

      Sets the required flag.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).