Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
setting up a separate handler for parse input or select, for experiment (#3449)
pedrohsdb9742112449a1
diff --git a/skyvern/config.py b/skyvern/config.pyindex 8ab1fdf0d..79c248f2f 100644--- a/skyvern/config.py+++ b/skyvern/config.py@@ -121,6 +121,7 @@ class Settings(BaseSettings):SINGLE_CLICK_AGENT_LLM_KEY: str | None = NoneSINGLE_INPUT_AGENT_LLM_KEY: str | None = NonePROMPT_BLOCK_LLM_KEY: str | None = None+ PARSE_SELECT_LLM_KEY: str | None = NoneEXTRACTION_LLM_KEY: str | None = None# COMMONLLM_CONFIG_TIMEOUT: int = 300diff --git a/skyvern/forge/app.py b/skyvern/forge/app.pyindex 82ba0a326..e56f9920d 100644--- a/skyvern/forge/app.py+++ b/skyvern/forge/app.py@@ -68,6 +68,11 @@ SINGLE_CLICK_AGENT_LLM_API_HANDLER = LLMAPIHandlerFactory.get_llm_api_handler(SINGLE_INPUT_AGENT_LLM_API_HANDLER = LLMAPIHandlerFactory.get_llm_api_handler(SETTINGS_MANAGER.SINGLE_INPUT_AGENT_LLM_KEY or SETTINGS_MANAGER.SECONDARY_LLM_KEY or SETTINGS_MANAGER.LLM_KEY)+PARSE_SELECT_LLM_API_HANDLER = (+ LLMAPIHandlerFactory.get_llm_api_handler(SETTINGS_MANAGER.PARSE_SELECT_LLM_KEY)+ if SETTINGS_MANAGER.PARSE_SELECT_LLM_KEY+ else SECONDARY_LLM_API_HANDLER+)EXTRACTION_LLM_API_HANDLER = (LLMAPIHandlerFactory.get_llm_api_handler(SETTINGS_MANAGER.EXTRACTION_LLM_KEY)if SETTINGS_MANAGER.EXTRACTION_LLM_KEYdiff --git a/skyvern/webeye/actions/handler.py b/skyvern/webeye/actions/handler.pyindex f16dfa38f..9fd816b5a 100644--- a/skyvern/webeye/actions/handler.py+++ b/skyvern/webeye/actions/handler.py@@ -3723,7 +3723,8 @@ async def _get_input_or_select_context(action_reasoning=action.reasoning,element_id=action.element_id,)- json_response = await app.SECONDARY_LLM_API_HANDLER(+ # Use centralized parse-select handler (set at init or via scripts)+ json_response = await app.PARSE_SELECT_LLM_API_HANDLER(prompt=prompt, step=step, prompt_name="parse-input-or-select-context")json_response["intention"] = action.intention