class

MCProtocol::Prompt

Inherits JSON::Serializable < Reference < Object

A prompt or prompt template that the server offers.

Constructors

new(name : String, arguments : Array(PromptArgument) | Nil = Nil, description : String | Nil = Nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

arguments

A list of arguments to use for templating the prompt.

Source
description

An optional description of what this prompt provides

Source
name

The name of the prompt or prompt template.

Source