class
MCProtocol::ListPromptsResult
- MCProtocol::ListPromptsResult
- Reference
- Object
Overview
The server's response to a prompts/list request from the client.
Included Modules
- JSON::Serializable
Defined in:
mcprotocol/list_prompts_result.crConstructors
- .new(prompts : Array(Prompt), _meta : JSON::Any | Nil = Nil, nextCursor : 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.
-
#nextCursor : String | Nil
An opaque token representing the pagination position after the last returned result.
- #prompts : Array(Prompt)
Constructor Detail
def self.new(prompts : Array(Prompt), _meta : JSON::Any | Nil = Nil, nextCursor : 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.
def nextCursor : String | Nil
#
An opaque token representing the pagination position after the last returned result. If present, there may be more results available.