class
MCProtocol::GetPromptResult
- MCProtocol::GetPromptResult
- Reference
- Object
Overview
The server's response to a prompts/get request from the client.
Included Modules
- JSON::Serializable
Defined in:
mcprotocol/get_prompt_result.crConstructors
- .new(messages : Array(PromptMessage), _meta : JSON::Any | Nil = Nil, description : String | Nil = Nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#_meta : JSON::Any | Nil
This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
-
#description : String | Nil
An optional description for the prompt.
- #messages : Array(PromptMessage)
Constructor Detail
def self.new(messages : Array(PromptMessage), _meta : JSON::Any | Nil = Nil, description : String | Nil = Nil)
#
Instance Method Detail
def _meta : JSON::Any | Nil
#
This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.