Script generation (#3157)
Some checks are pending
Run tests and pre-commit / Run tests and pre-commit hooks (push) Waiting to run
Run tests and pre-commit / Frontend Lint and Build (push) Waiting to run
Publish Fern Docs / run (push) Waiting to run

This commit is contained in:
Shuchang Zheng 2025-08-10 13:16:46 -07:00 committed by GitHub
parent 19d7b951bb
commit 58bd43171e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 708 additions and 244 deletions

View file

@ -11,8 +11,8 @@ from jinja2.sandbox import SandboxedEnvironment
from skyvern import analytics
from skyvern.config import settings
from skyvern.constants import GET_DOWNLOADED_FILES_TIMEOUT, SAVE_DOWNLOADED_FILES_TIMEOUT
from skyvern.core.code_generations.generate_code import generate_workflow_script as generate_python_workflow_script
from skyvern.core.code_generations.transform_workflow_run import transform_workflow_run_to_code_gen_input
from skyvern.core.script_generations.generate_script import generate_workflow_script as generate_python_workflow_script
from skyvern.core.script_generations.transform_workflow_run import transform_workflow_run_to_code_gen_input
from skyvern.exceptions import (
BlockNotFound,
BrowserSessionNotFound,
@ -2287,7 +2287,7 @@ class WorkflowService:
workflow_run_id=workflow_run.workflow_run_id,
organization_id=workflow.organization_id,
)
python_src = generate_python_workflow_script(
python_src = await generate_python_workflow_script(
file_name=codegen_input.file_name,
workflow_run_request=codegen_input.workflow_run,
workflow=codegen_input.workflow,