On this page Core task/workflow types: TaskSpec and WorkflowExecution (declarative shapes), TaskState (the lifecycle enum), TaskContext/TaskResult/AttemptSummary, and EscalationPayload for failures bubbling to the parent.
# protocols.src.orxtra.protocols._types._task
# protocols.src.orxtra.protocols._types._task # WorkflowExecution Workflow Execution Field Type Default namestr descriptionstr taskslist[TaskSpec] postcheckslist[Execution] budget`Decimal None` None
# TaskState class TaskState ( StrEnum ): # BudgetExhaustionPolicy class BudgetExhaustionPolicy ( StrEnum ): # TaskSpec TaskSpec Field Type Default namestr precheckslist[Execution][] postcheckslist[Execution][] agent`str None` None task_prompt`str None` None callable`str None` None subtasks`list[TaskSpec] None` None wait_for`str None` None decision_point`bool None` None orchestrator`bool None` None variableslist[str][] depends_on`list[str] None` None category`str None` None timeout`int None` None context_refinement`bool None` None retryint0 retry_resume`bool None` None retry_inject_failure`bool None` None for_each`str None` None for_each_abort_on_failure`bool None` None max_concurrency`int None` None output_schema`str None` None budget`Decimal None` None execution_target`str None` None write_paths`list[str] None` None on_success`str None` None pre_retry`str None` None
# AttemptSummary AttemptSummary Field Type Default attemptint output`str None` check_resultslist[CheckResult] duration_secondsfloat
# TaskContext TaskContext Field Type Default variablesdict[str, Any] run_iduuid.UUID task_namestr task_iduuid.UUID attemptint prior_attempts`list[AttemptSummary] None` notepad_contentstr parent_task_id`uuid.UUID None` nesting_depthint
# TaskResult TaskResult Field Type Default output`str None` structured_output`dict[str, Any] None` check_resultslist[CheckResult]
# EscalationPayload EscalationPayload Field Type Default task_namestr task_iduuid.UUID agent_name`str None` attemptsint failed_checkslist[CheckResult] agent_summarystr contextTaskContext
Share this page Evergreen link (always current)