class MCProtocol::Prompt

Overview

A prompt or prompt template that the server offers.

Included Modules

Defined in:

mcprotocol/prompt.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(name : String, arguments : Array(PromptArgument) | Nil = Nil, description : String | Nil = Nil) #

[View source]

Instance Method Detail

def arguments : Array(PromptArgument) | Nil #

A list of arguments to use for templating the prompt.


[View source]
def description : String | Nil #

An optional description of what this prompt provides


[View source]
def name : String #

The name of the prompt or prompt template.


[View source]