GetPromptRequest

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

Prompts can be static text or templates that accept arguments. When arguments are provided, the server will substitute them into the prompt template before returning the result.

Constructors

Link copied to clipboard
constructor(params: GetPromptRequestParams)
constructor(name: String, arguments: Map<String, String>? = null, meta: RequestMeta? = null)

Properties

Link copied to clipboard

Arguments to use for templating the prompt. Keys are argument names, values are the argument values to substitute.

Link copied to clipboard

Metadata for this request. May include a progressToken for out-of-band progress notifications.

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

The name of the prompt or prompt template to retrieve.

Link copied to clipboard
open override val params: GetPromptRequestParams

The parameters specifying which prompt to retrieve and any template arguments.

Functions

Link copied to clipboard

Converts the request to a JSON-RPC request.