callToolWithFormElicitation method
Future<McpJsonMap>
callToolWithFormElicitation(
- String name, {
- required McpFormElicitationHandler onElicitation,
- Object? id,
- McpJsonMap arguments = const <String, Object?>{},
- bool streamable = true,
- String? protocolVersion,
- Map<
String, String> headers = const <String, String>{}, - int maxInputRequiredRounds = 8,
Calls a modern stateless tool and completes bounded form input rounds
through onElicitation.
Implementation
Future<McpJsonMap> callToolWithFormElicitation(
String name, {
required McpFormElicitationHandler onElicitation,
Object? id,
McpJsonMap arguments = const <String, Object?>{},
bool streamable = true,
String? protocolVersion,
Map<String, String> headers = const <String, String>{},
int maxInputRequiredRounds = 8,
}) {
return _callToolWithFormElicitation(
name,
onElicitation: onElicitation,
id: id,
arguments: arguments,
streamable: streamable,
direct: false,
protocolVersion: protocolVersion,
headers: headers,
maxInputRequiredRounds: maxInputRequiredRounds,
);
}