mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-14 17:29:40 +00:00
Make text prompt executions a step in workflow runs (#1590)
This commit is contained in:
parent
bb834fa137
commit
e4cb0987cb
4 changed files with 25 additions and 1 deletions
|
@ -1181,6 +1181,13 @@ class TextPromptBlock(Block):
|
|||
browser_session_id: str | None = None,
|
||||
**kwargs: dict,
|
||||
) -> BlockResult:
|
||||
# Validate block execution
|
||||
await app.AGENT_FUNCTION.validate_block_execution(
|
||||
block=self,
|
||||
workflow_run_block_id=workflow_run_block_id,
|
||||
workflow_run_id=workflow_run_id,
|
||||
organization_id=organization_id,
|
||||
)
|
||||
# get workflow run context
|
||||
workflow_run_context = self.get_workflow_run_context(workflow_run_id)
|
||||
await app.DATABASE.update_workflow_run_block(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue