support proxy select for pbs (#3461)

This commit is contained in:
LawyZheng
2025-09-18 17:21:46 +08:00
committed by GitHub
parent 763eb7bd4f
commit 3e12133af9
8 changed files with 50 additions and 0 deletions

View File

@@ -3181,6 +3181,7 @@ class AgentDB:
runnable_type: str | None = None,
runnable_id: str | None = None,
timeout_minutes: int | None = None,
proxy_location: ProxyLocation | None = ProxyLocation.RESIDENTIAL,
) -> PersistentBrowserSession:
"""Create a new persistent browser session."""
try:
@@ -3190,6 +3191,7 @@ class AgentDB:
runnable_type=runnable_type,
runnable_id=runnable_id,
timeout_minutes=timeout_minutes,
proxy_location=proxy_location,
)
session.add(browser_session)
await session.commit()