McpResultType class

Draft ResultType discriminator values (schema.ts ResultType).

The draft Result carries resultType on every 2026-07-28 result. When a client receives a result from an earlier revision (which omits the field) it 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

Constants

complete → const String
"complete" — the request finished; the result holds the final content.
inputRequired → const String
"input_required" — the result is an InputRequiredResult and the client must provide more input before retrying the original request.
key → const String
The wire key on a Result object.
task → const String
"task" — the server elected to process the request asynchronously and the result is a CreateTaskResult (Result & Task, flat). The client tracks it via tasks/get / tasks/update / tasks/cancel. Tasks extension (io.modelcontextprotocol/tasks), MCP 2026-07-28.