ReadResourceRequest extension type
Sent from the client to the server, to read a specific resource URI.
- on
- Implemented types
Constructors
-
ReadResourceRequest({required String uri, Map<
String, Result> ? inputResponses, String? requestState, MetaWithProgressToken? meta}) -
factory
-
ReadResourceRequest.fromMap(Map<
String, Object?> _value)
Properties
-
inputResponses
→ Map<
String, Result> ? -
What the client got for each request in
InputRequiredResult.inputRequests, under the keys the server gave them.
no setterinherited
- meta → MetaWithProgressToken?
-
If specified, the caller is requesting out-of-band progress notifications
for this request (as represented by notifications/progress).
no setterinherited
- requestState → String?
-
The InputRequiredResult.requestState the server sent, echoed back
unread.
no setterinherited
- uri → String
-
The URI of the resource to read. The URI can use any protocol; it is
up to the server how to interpret it.
no setter
Methods
-
createMessageResult(
String key) → CreateMessageResult? -
The sampling arm of the schema
InputResponseunion underkey.inherited -
elicitResult(
String key) → ElicitResult? -
The elicitation arm of the schema
InputResponseunion underkey.inherited -
listRootsResult(
String key) → ListRootsResult? -
The roots arm of the schema
InputResponseunion underkey.inherited
Constants
- methodName → const String