Change task response to include workflow run id (#918)

Co-authored-by: Muhammed Salih Altun <muhammedsalihaltun@gmail.com>
This commit is contained in:
Kerem Yilmaz
2024-10-07 12:13:41 -07:00
committed by GitHub
parent 413e6a838f
commit cdd654723d

View File

@@ -224,6 +224,7 @@ class Task(TaskRequest):
recording_url=recording_url,
errors=self.errors,
max_steps_per_run=self.max_steps_per_run,
workflow_run_id=self.workflow_run_id,
)
@@ -240,6 +241,7 @@ class TaskResponse(BaseModel):
failure_reason: str | None = None
errors: list[dict[str, Any]] = []
max_steps_per_run: int | None = None
workflow_run_id: str | None = None
class TaskOutput(BaseModel):