class
MCProtocol::ListResourcesResult
- MCProtocol::ListResourcesResult
- Reference
- Object
Overview
The server's response to a resources/list request from the client.
Included Modules
- JSON::Serializable
Defined in:
mcprotocol/list_resources_result.crConstructors
- .new(resources : Array(Resource), _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.
- #resources : Array(Resource)
Constructor Detail
def self.new(resources : Array(Resource), _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.