WithInputResponses extension type

A "mixin"-like extension type for any request that contains input responses at the keys "inputResponses" and "requestState".

These are the other half of an InputRequiredResult, what a client puts on the retry. The requests which can answer with one take them.

Should be "mixed in" by implementing this type from other extension types.

This type is not intended to be constructed directly and thus has no public constructor.

From the 2026-07-28 revision.

on
Implemented types
Implementers

Properties

inputResponses → Map<String, Result>?
What the client got for each request in InputRequiredResult.inputRequests, under the keys the server gave them.
no setter
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 setter

Methods

createMessageResult(String key) → CreateMessageResult?
The sampling arm of the schema InputResponse union under key.
elicitResult(String key) → ElicitResult?
The elicitation arm of the schema InputResponse union under key.
listRootsResult(String key) → ListRootsResult?
The roots arm of the schema InputResponse union under key.