Make text prompt executions a step in workflow runs (#1590)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user