TaskItem class final

One unit of work in a task batch call (omp's TaskItem, reduced: no isolated, no schemaMode).

Constructors

TaskItem({required String task, String? name, String? agent, Object? outputSchema})
Creates a TaskItem.
const

Properties

agent → String?
Agent type to run this item; null resolves to defaultTaskAgentName.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String?
Stable id base for the spawned agent (A-Za-z0-9_-, ≤48 chars after sanitization). Uniquified per session (Name, Name-2, …). Defaults to the capitalized agent type name.
final
outputSchema → Object?
Caller-provided JSON Schema for the child's final output (omp's outputSchema). A map is enforced with the param-validation subset; true accepts any parseable JSON document; anything else disables validation (StructuredTaskOutput reports unavailable).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
task → String
The work — complete, self-contained instructions.
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