class
MCProtocol::Prompt
- MCProtocol::Prompt
- Reference
- Object
Overview
A prompt or prompt template that the server offers.
Included Modules
- JSON::Serializable
Defined in:
mcprotocol/prompt.crConstructors
- .new(pull : JSON::PullParser)
- .new(name : String, arguments : Array(PromptArgument) | Nil = Nil, description : String | Nil = Nil)
Instance Method Summary
-
#arguments : Array(PromptArgument) | Nil
A list of arguments to use for templating the prompt.
-
#description : String | Nil
An optional description of what this prompt provides
-
#name : String
The name of the prompt or prompt template.
Constructor Detail
def self.new(name : String, arguments : Array(PromptArgument) | Nil = Nil, description : String | Nil = Nil)
#