SDK: validation action (#4203)
Some checks are pending
Run tests and pre-commit / Run tests and pre-commit hooks (push) Waiting to run
Run tests and pre-commit / Frontend Lint and Build (push) Waiting to run
Publish Fern Docs / run (push) Waiting to run

This commit is contained in:
Stanislav Novosad 2025-12-08 13:10:30 -07:00 committed by GitHub
parent 7ef48c32e0
commit 4b99cd3f45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 157 additions and 5 deletions

View file

@ -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,