add SkyvernClient (#1943)

This commit is contained in:
Shuchang Zheng
2025-03-16 15:46:34 -07:00
committed by GitHub
parent 18d38573d3
commit 8a561c2fbb
13 changed files with 137 additions and 44 deletions

View File

@@ -5,7 +5,6 @@ from skyvern.forge.sdk.api.llm.exceptions import (
DuplicateLLMConfigError,
InvalidLLMConfigError,
MissingLLMProviderEnvVarsError,
NoProviderEnabledError,
)
from skyvern.forge.sdk.api.llm.models import LiteLLMParams, LLMConfig, LLMRouterConfig
@@ -55,7 +54,10 @@ if not any(
settings.ENABLE_NOVITA,
]
):
raise NoProviderEnabledError()
LOG.warning(
"At least one LLM provider must be enabled. Run setup.sh and follow through the LLM provider setup, or "
"update the .env file (check out .env.example to see the required environment variables)."
)
if settings.ENABLE_OPENAI:

View File

@@ -674,7 +674,7 @@ async def get_workflow_runs_by_id(
"/workflows/{workflow_id}/runs/{workflow_run_id}/",
include_in_schema=False,
)
async def get_workflow_run(
async def get_workflow_run_with_workflow_id(
workflow_id: str,
workflow_run_id: str,
current_org: Organization = Depends(org_auth_service.get_current_org),
@@ -721,7 +721,7 @@ async def get_workflow_run_timeline(
response_model=WorkflowRunStatusResponse,
include_in_schema=False,
)
async def get_workflow_run_by_run_id(
async def get_workflow_run(
workflow_run_id: str,
current_org: Organization = Depends(org_auth_service.get_current_org),
) -> WorkflowRunStatusResponse: