ListPromptsResult

data class ListPromptsResult(val prompts: List<Prompt>, val nextCursor: String? = null, val meta: JsonObject? = null) : ServerResult, PaginatedResult(source)

The server's response to a ListPromptsRequest from the client.

Returns the available prompts and prompt templates, along with pagination information if there are more results available.

Constructors

Link copied to clipboard
constructor(prompts: List<Prompt>, nextCursor: String? = null, meta: JsonObject? = null)

Properties

Link copied to clipboard
@SerialName(value = "_meta")
open override val meta: JsonObject?

Optional metadata for this response.

Link copied to clipboard
open override val nextCursor: String?

An opaque token representing the pagination position after the last returned result. If present, there may be more results available. The client can pass this token in a subsequent request to fetch the next page.

Link copied to clipboard

The list of available prompts. Each prompt includes its name, optional description, and information about any arguments it accepts.