GetPromptResult

data class GetPromptResult(val messages: List<PromptMessage>, val description: String? = null, val meta: JsonObject? = null) : ServerResult(source)

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

Contains the prompt's messages and optional description. If the prompt was a template, the messages will have arguments already substituted.

Constructors

Link copied to clipboard
constructor(messages: List<PromptMessage>, description: String? = null, meta: JsonObject? = null)

Properties

Link copied to clipboard
open val _meta: JsonObject
Link copied to clipboard

An optional description for the prompt, explaining its purpose or usage.

Link copied to clipboard

The list of messages that make up this prompt. Each message has a role (e.g., "user", "assistant") and content.

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

Optional metadata for this response.