Make text prompt executions a step in workflow runs (#1590)

This commit is contained in:
Shuchang Zheng
2025-01-17 09:17:31 -08:00
committed by GitHub
parent bb834fa137
commit e4cb0987cb
4 changed files with 25 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ from skyvern.forge.sdk.api.llm.exceptions import LLMProviderError
from skyvern.forge.sdk.models import Step, StepStatus
from skyvern.forge.sdk.schemas.organizations import Organization
from skyvern.forge.sdk.schemas.tasks import Task, TaskStatus
from skyvern.forge.sdk.workflow.models.block import BlockTypeVar
from skyvern.webeye.browser_factory import BrowserState
from skyvern.webeye.scraper.scraper import ELEMENT_NODE_ATTRIBUTES, CleanupElementTreeFunc, json_to_html
@@ -379,6 +380,11 @@ class AgentFunction:
if not can_execute:
raise StepUnableToExecuteError(step_id=step.step_id, reason=f"Cannot execute step. Reasons: {reasons}")
async def validate_block_execution(
self, block: BlockTypeVar, workflow_run_id: str, workflow_run_block_id: str, organization_id: str | None
) -> None:
return
async def prepare_step_execution(
self,
organization: Organization | None,