Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
shu/make timeout optional field in create browser session (#2348)
Shuchang Zheng847ddacebd09
diff --git a/skyvern/forge/sdk/routes/agent_protocol.py b/skyvern/forge/sdk/routes/agent_protocol.pyindex 401e4dda1..c336f8014 100644--- a/skyvern/forge/sdk/routes/agent_protocol.py+++ b/skyvern/forge/sdk/routes/agent_protocol.py@@ -1715,7 +1715,7 @@ async def cancel_run(response_model=list[CredentialResponse],summary="Get all credentials",description="Retrieves a paginated list of credentials for the current organization",- tags=["credentials"],+ tags=["Credentials"],openapi_extra={"x-fern-sdk-group-name": "credentials","x-fern-sdk-method-name": "get_credentials",@@ -1785,7 +1785,7 @@ async def get_credentials(response_model=CredentialResponse,summary="Get credential by ID",description="Retrieves a specific credential by its ID",- tags=["credentials"],+ tags=["Credentials"],openapi_extra={"x-fern-sdk-group-name": "credentials","x-fern-sdk-method-name": "get_credential",@@ -1847,7 +1847,7 @@ async def get_credential(status_code=204,summary="Delete credential",description="Deletes a specific credential by its ID",- tags=["credentials"],+ tags=["Credentials"],openapi_extra={"x-fern-sdk-group-name": "credentials","x-fern-sdk-method-name": "delete_credential",@@ -1888,7 +1888,7 @@ async def delete_credential(status_code=201,summary="Create credential",description="Creates a new credential for the current organization",- tags=["credentials"],+ tags=["Credentials"],openapi_extra={"x-fern-sdk-group-name": "credentials","x-fern-sdk-method-name": "create_credential",diff --git a/skyvern/schemas/browser_sessions.py b/skyvern/schemas/browser_sessions.pyindex 5962117b2..b534d6c6b 100644--- a/skyvern/schemas/browser_sessions.py+++ b/skyvern/schemas/browser_sessions.py@@ -6,7 +6,7 @@ DEFAULT_TIMEOUT = 60class CreateBrowserSessionRequest(BaseModel):- timeout: int = Field(+ timeout: int | None = Field(default=DEFAULT_TIMEOUT,description=f"Timeout in minutes for the session. Timeout is applied after the session is started. Must be between {MIN_TIMEOUT} and {MAX_TIMEOUT}. Defaults to {DEFAULT_TIMEOUT}.",ge=MIN_TIMEOUT,