script generation improvement (#3216)
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-16 17:48:10 -07:00 committed by GitHub
parent 82f0b98fca
commit b9b7591079
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 841 additions and 279 deletions

View file

@ -1,9 +1,11 @@
from typing import Any
from skyvern.core.script_generations.script_run_context_manager import script_run_context_manager
from skyvern.core.script_generations.skyvern_page import RunContext, SkyvernPage
async def setup(parameters: dict[str, Any], generate_response: bool = False) -> tuple[SkyvernPage, RunContext]:
async def setup(parameters: dict[str, Any], run_id: str | None = None) -> tuple[SkyvernPage, RunContext]:
skyvern_page = await SkyvernPage.create()
run_context = RunContext(parameters=parameters, page=skyvern_page)
script_run_context_manager.set_run_context(run_context)
return skyvern_page, run_context