GetPromptRequest

@Serializable
data class GetPromptRequest(val name: String, val arguments: Map<String, String>?, val _meta: JsonObject = EmptyJsonObject) : ClientRequest, WithMeta(source)

Used by the client to get a prompt provided by the server.

Constructors

Link copied to clipboard
constructor(name: String, arguments: Map<String, String>?, _meta: JsonObject = EmptyJsonObject)

Properties

Link copied to clipboard
open override val _meta: JsonObject

The protocol reserves this result property to allow clients and servers to attach additional metadata to their responses.

Link copied to clipboard

Arguments to use for templating the prompt.

Link copied to clipboard
open override val method: Method
Link copied to clipboard

The name of the prompt or prompt template.

Functions

Link copied to clipboard

Converts the request to a JSON-RPC request.