InputRequiredResult class
Draft InputRequiredResult — sent by the server to signal that additional
input is needed before the original request can complete.
At least one of inputRequests / requestState MUST be present
(requestState-only = load-shedding / backpressure). Each inputRequests
value is a server→client request object { "method": ..., "params": ... }
(CreateMessageRequest | ListRootsRequest | ElicitRequest). Keys are
server-assigned identifiers the client echoes back in its inputResponses.
Constructors
-
InputRequiredResult({Map<
String, Map< ? inputRequests, String? requestState})String, dynamic> > -
InputRequiredResult.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inputRequests
→ Map<
String, Map< ?String, dynamic> > -
Server-issued requests the client must fulfill first, keyed by a
server-assigned identifier.
nullfor arequestState-only result.final - requestState → String?
-
Opaque state blob passed back to the server on retry. The CLIENT MUST NOT
interpret it; it is echoed verbatim in
InputResponseRequestParams.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Emits the schema shape, stamping
resultType: "input_required". -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
elicitRequest(
{required String message, required Map< String, dynamic> requestedSchema}) → Map<String, dynamic> -
Build an
elicitation/createinput-request object for inputRequests. -
rootsRequest(
) → Map< String, dynamic> -
Build a
roots/listinput-request object. -
samplingRequest(
Map< String, dynamic> params) → Map<String, dynamic> -
Build a
sampling/createMessageinput-request object.