TaskSingleResult class final
Result of a single subagent execution (omp's SingleResult, reduced).
Constructors
- TaskSingleResult({required int index, required String id, required String agent, required String task, required TaskSpawnStatus status, required String output, required bool truncated, required Duration duration, required int tokens, required int requests, required String model, String? error, StructuredTaskOutput? structuredOutput})
-
Creates a TaskSingleResult.
const
Properties
- agent → String
-
The agent type that ran.
final
- duration → Duration
-
Wall-clock duration of the child run (excluding semaphore wait).
final
- error → String?
-
Failure/abort detail when status is not TaskSpawnStatus.completed.
final
- exitCode → int
-
Convenience: omp's
exitCodemapping of status.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Allocated agent id — the
agent://<id>address and background job id.final - index → int
-
Position of this item in the batch call.
final
- model → String
-
Resolved model id the child ran on (omp's
resolvedModel, reduced to the bare id).final - output → String
-
Text output (capped at maxTaskOutputLines/maxTaskOutputBytes); the
full output lives in the
AgentOutputStoreunder id.final - requests → int
-
Count of assistant turns (omp's
requests).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → TaskSpawnStatus
-
Terminal state; a child failure is a per-item error entry, never a
batch failure.
final
- structuredOutput → StructuredTaskOutput?
-
Structured completion metadata when the item carried an
outputSchema.final - task → String
-
The assigned task text.
final
- tokens → int
-
Cumulative input + output + cacheWrite tokens across the child's turns
(omp's
tokenssemantics).final - truncated → bool
-
Whether output was truncated.
final
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