fix run_type for TaskRunResponse (#2130)

This commit is contained in:
Shuchang Zheng
2025-04-11 15:46:17 -07:00
committed by GitHub
parent c04aad5295
commit 9640e34449

View File

@@ -217,8 +217,8 @@ class BaseRunResponse(BaseModel):
class TaskRunResponse(BaseRunResponse):
run_type: Literal[RunType.task_v1, RunType.task_v2] = Field(
description="Type of task run - either task_v1 or task_v2"
run_type: Literal[RunType.task_v1, RunType.task_v2, RunType.openai_cua] = Field(
description="Types of a task run - task_v1, task_v2, openai_cua"
)
run_request: TaskRunRequest | None = Field(
default=None, description="The original request parameters used to start this task run"