Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
Exclude orgs under 90 days old from Gemini flex LLM routing (#7486)
pedrohsdb78616952b3d3
diff --git a/skyvern/forge/agent_functions.py b/skyvern/forge/agent_functions.pyindex b2a8aa383..79d445786 100644--- a/skyvern/forge/agent_functions.py+++ b/skyvern/forge/agent_functions.py@@ -761,15 +761,15 @@ class AgentFunction:self,*,trigger_type: "WorkflowRunTriggerType | None",- organization_id: str,+ organization: Organization,workflow_permanent_id: str,workflow_run_id: str,) -> bool:"""Decide whether a given workflow run is eligible for flex-tier LLM routing.+ Receives the full Organization so implementations can gate on org attributes.Cloud overrides this to consult its experimentation provider; OSS has no flex- routers so the default returns False.- """+ routers so the default returns False."""return Falseasync def resolve_recording_video_size(diff --git a/skyvern/forge/sdk/workflow/service.py b/skyvern/forge/sdk/workflow/service.pyindex bb49f0acb..d2cc3dbe7 100644--- a/skyvern/forge/sdk/workflow/service.py+++ b/skyvern/forge/sdk/workflow/service.py@@ -1560,7 +1560,7 @@ class WorkflowService:# owner of the flag name and property shape.new_context.use_flex_llm_routing = await app.AGENT_FUNCTION.should_use_flex_llm_routing(trigger_type=resolved_trigger_type,- organization_id=organization.organization_id,+ organization=organization,workflow_permanent_id=workflow_run.workflow_permanent_id,workflow_run_id=workflow_run.workflow_run_id,)