fix(SKY-9193): halve element_fallback max_steps from 10 to 5 (#5631)

This commit is contained in:
pedrohsdb 2026-04-23 17:05:20 -07:00 committed by GitHub
parent eaf0783d37
commit f70b4cc6f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -806,7 +806,7 @@ class RealSkyvernPageAi(SkyvernPageAi):
async def ai_element_fallback(
self,
navigation_goal: str,
max_steps: int = 10,
max_steps: int = 5,
) -> None:
"""Activate the AI agent from the CURRENT page position to achieve a navigation goal.

View file

@ -3213,7 +3213,7 @@ class SkyvernPage(Page):
async def element_fallback(
self,
navigation_goal: str,
max_steps: int = 10,
max_steps: int = 5,
) -> None:
"""Activate the AI agent from the CURRENT page position to achieve a goal.
@ -3223,7 +3223,7 @@ class SkyvernPage(Page):
Args:
navigation_goal: The goal for the AI agent to achieve from the current page.
max_steps: Maximum number of agent steps before giving up. Defaults to 10.
max_steps: Maximum number of agent steps before giving up. Defaults to 5.
Raises:
Exception: If the element fallback fails or exceeds max_steps.

View file

@ -114,7 +114,7 @@ class SkyvernPageAi(Protocol):
async def ai_element_fallback(
self,
navigation_goal: str,
max_steps: int = 10,
max_steps: int = 5,
) -> None:
"""Activate the AI agent from the CURRENT page position to achieve a navigation goal.