unified run_task api (#2012)

This commit is contained in:
Shuchang Zheng
2025-03-24 22:08:37 -07:00
committed by GitHub
parent 19c7c56af7
commit 166cfb6366
8 changed files with 259 additions and 126 deletions

View File

@@ -1,18 +1,11 @@
from enum import StrEnum
from typing import Any
import httpx
from skyvern.config import settings
from skyvern.exceptions import SkyvernClientException
from skyvern.forge.sdk.schemas.task_runs import TaskRunResponse
from skyvern.forge.sdk.workflow.models.workflow import RunWorkflowResponse, WorkflowRunResponse
from skyvern.schemas.runs import ProxyLocation
class RunEngine(StrEnum):
skyvern_v1 = "skyvern-1.0"
skyvern_v2 = "skyvern-2.0"
from skyvern.schemas.runs import ProxyLocation, RunEngine, TaskRunResponse
class SkyvernClient: