mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2026-04-28 03:30:10 +00:00
SDK: validation action (#4203)
This commit is contained in:
parent
7ef48c32e0
commit
4b99cd3f45
11 changed files with 157 additions and 5 deletions
|
|
@ -205,6 +205,12 @@ async def run_sdk_action(
|
|||
prompt=action.prompt,
|
||||
)
|
||||
result = xpath_result
|
||||
elif action.type == "validate":
|
||||
validation_result = await page_ai.ai_validate(
|
||||
prompt=action.prompt,
|
||||
model=action.model,
|
||||
)
|
||||
result = validation_result
|
||||
elif action.type == "prompt":
|
||||
prompt_result = await page_ai.ai_prompt(
|
||||
prompt=action.prompt,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue