browser sessions v2 - backend (#4515)

Signed-off-by: Benji Visser <benji@093b.org>
This commit is contained in:
Benji Visser
2026-01-21 22:27:16 -05:00
committed by GitHub
parent f781a6f0ef
commit b5ff547a3a
15 changed files with 273 additions and 35 deletions

View File

@@ -27,6 +27,11 @@ class BrowserSessionResponse(BaseModel):
examples=["pbs_123456"],
)
organization_id: str = Field(description="ID of the organization that owns this session")
status: str | None = Field(
None,
description="Current status of the browser session",
examples=["created", "running", "completed", "failed", "timeout"],
)
runnable_type: str | None = Field(
None,
description="Type of the current runnable associated with this session (workflow, task etc)",
@@ -124,6 +129,7 @@ class BrowserSessionResponse(BaseModel):
return cls(
browser_session_id=browser_session.persistent_browser_session_id,
organization_id=browser_session.organization_id,
status=browser_session.status,
runnable_type=browser_session.runnable_type,
runnable_id=browser_session.runnable_id,
timeout=browser_session.timeout_minutes,