class

MCProtocol::GetPromptResult

Inherits JSON::Serializable < Reference < Object

The server's response to a prompts/get request from the client.

Constructors

new(messages : Array(PromptMessage), _meta : JSON::Any | Nil = Nil, description : String | Nil = Nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

_meta

This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.

Source
description

An optional description for the prompt.

Source
messages
Source