Class ListPromptsResult


Result payload for "prompts/list".
  • Constructor Details

  • Method Details

    • getPrompts

      public List<Prompt> getPrompts()
      Prompt descriptors.
      Returns:
      The prompts list, or null if not set.
    • setPrompts

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

      public ListPromptsResult setPrompts(Prompt... value)
      Sets the prompt descriptors.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • addPrompts

      public ListPromptsResult addPrompts(Prompt... value)
      Appends to the prompt descriptors.
      Parameters:
      value - The values to append.
      Returns:
      This object (for method chaining).
    • addPrompts

      Appends to the prompt descriptors.
      Parameters:
      value - The values to append.
      Returns:
      This object (for method chaining).
    • getNextCursor

      Pagination cursor for the next page.
      Returns:
      The cursor, or null if not set.
    • setNextCursor

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