requestInput method

Future<Map<String, dynamic>> requestInput(
  1. Map<String, Map<String, dynamic>> requests
)

Ask the requestor for input and wait for the answers, keyed like requests (each an elicitation/create, sampling/createMessage or roots/list request). On a 2025-11-25 task the requests go to the client tagged with the task while it is input_required; on an extension task they are offered as inputRequests and answered with tasks/update (keys must be new for this task).

Implementation

Future<Map<String, dynamic>> requestInput(
  Map<String, Map<String, dynamic>> requests,
) => _server._taskInput(record, _sessionId, requests);