SDK: validation action (#4203)
This commit is contained in:
committed by
GitHub
parent
7ef48c32e0
commit
4b99cd3f45
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user