Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
fix(SKY-9193): halve element_fallback max_steps from 10 to 5 (#5631)
pedrohsdbf70b4cc6f309
diff --git a/skyvern/core/script_generations/real_skyvern_page_ai.py b/skyvern/core/script_generations/real_skyvern_page_ai.pyindex 222f3b4d4..3c8b4d847 100644--- a/skyvern/core/script_generations/real_skyvern_page_ai.py+++ b/skyvern/core/script_generations/real_skyvern_page_ai.py@@ -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.diff --git a/skyvern/core/script_generations/skyvern_page.py b/skyvern/core/script_generations/skyvern_page.pyindex ebe396d8d..fbf6dde99 100644--- a/skyvern/core/script_generations/skyvern_page.py+++ b/skyvern/core/script_generations/skyvern_page.py@@ -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.diff --git a/skyvern/core/script_generations/skyvern_page_ai.py b/skyvern/core/script_generations/skyvern_page_ai.pyindex 13e7259ca..716b35eea 100644--- a/skyvern/core/script_generations/skyvern_page_ai.py+++ b/skyvern/core/script_generations/skyvern_page_ai.py@@ -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.