add ai_fallback to workflow_runs (#3581)

This commit is contained in:
Shuchang Zheng
2025-10-01 14:13:56 -07:00
committed by GitHub
parent db024d42bb
commit f97b53975f
7 changed files with 62 additions and 1 deletions

View File

@@ -358,6 +358,14 @@ class WorkflowRunRequest(BaseModel):
description="The CDP address for the workflow run.",
examples=["http://127.0.0.1:9222", "ws://127.0.0.1:9222/devtools/browser/1234567890"],
)
ai_fallback: bool | None = Field(
default=None,
description="Whether to fallback to AI if the workflow run fails.",
)
run_with: str | None = Field(
default=None,
description="Whether to run the workflow with agent or code.",
)
@field_validator("webhook_url", "totp_url")
@classmethod