McpResultType class

Draft ResultType discriminator values (schema.ts ResultType).

A 2026-07-28 result always carries resultType. A result from an earlier revision omits it; the client MUST treat the absent value as complete.

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

of(Map<String, dynamic> result) String
The result type of result, treating an absent field as complete (backward compatibility with earlier revisions).

Constants

complete → const String
"complete" — final content; parse the result normally.
inputRequired → const String
"input_required" — the result is an InputRequiredResult.
key → const String
The wire key on a Result object.
task → const String
"task" — the result is a CreateTaskResult (Result & Task); the server processes the request asynchronously and the client tracks it via tasks/get / tasks/update / tasks/cancel (Tasks extension, 2026-07-28).