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<String, dynamic>>? inputRequests, String? requestState})
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. null for a requestState-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/create input-request object for inputRequests.
rootsRequest() Map<String, dynamic>
Build a roots/list input-request object.
samplingRequest(Map<String, dynamic> params) Map<String, dynamic>
Build a sampling/createMessage input-request object.