Change task response to include workflow run id (#918)
Co-authored-by: Muhammed Salih Altun <muhammedsalihaltun@gmail.com>
This commit is contained in:
@@ -224,6 +224,7 @@ class Task(TaskRequest):
|
|||||||
recording_url=recording_url,
|
recording_url=recording_url,
|
||||||
errors=self.errors,
|
errors=self.errors,
|
||||||
max_steps_per_run=self.max_steps_per_run,
|
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
|
failure_reason: str | None = None
|
||||||
errors: list[dict[str, Any]] = []
|
errors: list[dict[str, Any]] = []
|
||||||
max_steps_per_run: int | None = None
|
max_steps_per_run: int | None = None
|
||||||
|
workflow_run_id: str | None = None
|
||||||
|
|
||||||
|
|
||||||
class TaskOutput(BaseModel):
|
class TaskOutput(BaseModel):
|
||||||
|
|||||||
Reference in New Issue
Block a user