Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
decrease max svg parsing (#4430)
LawyZhengdad3590d7a9d
diff --git a/skyvern/config.py b/skyvern/config.pyindex 4cc859c47..3e2a44105 100644--- a/skyvern/config.py+++ b/skyvern/config.py@@ -374,6 +374,7 @@ class Settings(BaseSettings):BITWARDEN_SERVER_PORT: int = 8002SVG_MAX_LENGTH: int = 100000+ SVG_MAX_PARSING_ELEMENT_CNT: int = 3000ENABLE_LOG_ARTIFACTS: bool = FalseENABLE_CODE_BLOCK: bool = Truediff --git a/skyvern/forge/agent_functions.py b/skyvern/forge/agent_functions.pyindex 26804fcde..b4234065b 100644--- a/skyvern/forge/agent_functions.py+++ b/skyvern/forge/agent_functions.py@@ -504,7 +504,7 @@ class AgentFunction:task: Task | None = None,step: Step | None = None,) -> CleanupElementTreeFunc:- MAX_ELEMENT_CNT = 3000+ MAX_ELEMENT_CNT = settings.SVG_MAX_PARSING_ELEMENT_CNT@TraceManager.traced_async(ignore_input=True)async def cleanup_element_tree_func(frame: Page | Frame, url: str, element_tree: list[dict]) -> list[dict]: