anthropic CUA (#2231)
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This commit is contained in:
@@ -93,12 +93,18 @@ class RunType(StrEnum):
|
||||
task_v2 = "task_v2"
|
||||
workflow_run = "workflow_run"
|
||||
openai_cua = "openai_cua"
|
||||
anthropic_cua = "anthropic_cua"
|
||||
|
||||
|
||||
class RunEngine(StrEnum):
|
||||
skyvern_v1 = "skyvern-1.0"
|
||||
skyvern_v2 = "skyvern-2.0"
|
||||
openai_cua = "openai-cua"
|
||||
anthropic_cua = "anthropic-cua"
|
||||
|
||||
|
||||
CUA_ENGINES = [RunEngine.openai_cua, RunEngine.anthropic_cua]
|
||||
CUA_RUN_TYPES = [RunType.openai_cua, RunType.anthropic_cua]
|
||||
|
||||
|
||||
class RunStatus(StrEnum):
|
||||
@@ -217,8 +223,8 @@ class BaseRunResponse(BaseModel):
|
||||
|
||||
|
||||
class TaskRunResponse(BaseRunResponse):
|
||||
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_type: Literal[RunType.task_v1, RunType.task_v2, RunType.openai_cua, RunType.anthropic_cua] = Field(
|
||||
description="Types of a task run - task_v1, task_v2, openai_cua, anthropic_cua"
|
||||
)
|
||||
run_request: TaskRunRequest | None = Field(
|
||||
default=None, description="The original request parameters used to start this task run"
|
||||
|
||||
Reference in New Issue
Block a user