McpTaskRecord class
One task.
Properties
- createdAt → DateTime
-
final
-
error
↔ Map<
String, dynamic> ? -
The underlying request's JSON-RPC error (on failure).
getter/setter pair
- flavor → McpTaskFlavor
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inputRequests
→ Map<
String, Map< String, dynamic> > -
Extension: outstanding server-to-client requests by key.
final
- isTerminal → bool
-
no setter
- lastUpdatedAt ↔ DateTime
-
getter/setter pair
- method → String
-
The method of the request the task carries out (e.g.
tools/call).final - owner → String?
-
The authorization context the task belongs to (null: none was given).
final
- pollIntervalMs ↔ int?
-
getter/setter pair
-
result
↔ Map<
String, dynamic> ? -
The underlying request's result (on completion).
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ String
-
getter/setter pair
- statusMessage ↔ String?
-
getter/setter pair
- taskId → String
-
final
- ttlMs ↔ int?
-
getter/setter pair
-
whenTerminal
→ Future<
void> -
Completes when the task reaches a terminal status.
no setter
Methods
-
expiredAt(
DateTime now) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDetailedJson(
) → Map< String, dynamic> -
Extension
DetailedTask: the task plus the payload of its status. -
toString(
) → String -
A string representation of this object.
inherited
-
toTaskJson(
) → Map< String, dynamic> -
The
Taskobject of this task's specification.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited