class TaskResponseSchema(BaseModel):
id: str # Task ID
run_id: str # ID of the run
node_id: str # ID of the node
node_type: str # Type of the node
status: TaskStatus # Status of the task (PENDING, RUNNING, COMPLETED, FAILED, PAUSED, CANCELED)
start_time: Optional[datetime] # When the task started
end_time: Optional[datetime] # When the task ended
inputs: Optional[Dict[str, Any]] # Inputs to the task
outputs: Optional[Dict[str, Any]] # Outputs from the task
error: Optional[str] # Error message if the task failed
is_downstream_of_pause: bool # Whether this task is downstream of a paused node