Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.13.0"
".": "1.14.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 27
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase/browserbase-f39b852755134d01a440f7c37701f6c5397f43d13740d9ba08739cae488382a7.yml
openapi_spec_hash: de6c25eebe5026d0fb9a4d7a93ec7718
config_hash: d4b0c534eaf7665ea25168e0e824c9d3
configured_endpoints: 36
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase/browserbase-e82c289d3d3aabd936a476cf81630587ffe46ab9e9bdebced4b31b8c2f9bc08f.yml
openapi_spec_hash: 473121b283812a3dfd866afe9b61dc7d
config_hash: 1b24ea9fa13645b16b74aa794dbc8190
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 1.14.0 (2026-07-02)

Full Changelog: [v1.13.0...v1.14.0](https://github.com/browserbase/sdk-python/compare/v1.13.0...v1.14.0)

### Features

* [CORE-000][apps/sdk] Add agents to SDK ([580ec55](https://github.com/browserbase/sdk-python/commit/580ec554b66c71ecaeb1133e28173fc3275c43e9))


### Documentation

* document and un-gate allowedDomains session setting ([126cf6d](https://github.com/browserbase/sdk-python/commit/126cf6d331da97cc4c67b2b8f34c467f4449a010))

## 1.13.0 (2026-06-08)

Full Changelog: [v1.12.0...v1.13.0](https://github.com/browserbase/sdk-python/compare/v1.12.0...v1.13.0)
Expand Down
41 changes: 41 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,44 @@ Methods:

- <code title="get /v1/sessions/{id}/replays">client.sessions.replays.<a href="./src/browserbase/resources/sessions/replays.py">retrieve</a>(id) -> <a href="./src/browserbase/types/sessions/replay_retrieve_response.py">ReplayRetrieveResponse</a></code>
- <code title="get /v1/sessions/{id}/replays/{pageId}">client.sessions.replays.<a href="./src/browserbase/resources/sessions/replays.py">retrieve_page</a>(page_id, \*, id) -> BinaryAPIResponse</code>

# Agents

Types:

```python
from browserbase.types import (
AgentCreateResponse,
AgentRetrieveResponse,
AgentUpdateResponse,
AgentListResponse,
)
```

Methods:

- <code title="post /v1/agents">client.agents.<a href="./src/browserbase/resources/agents/agents.py">create</a>(\*\*<a href="src/browserbase/types/agent_create_params.py">params</a>) -> <a href="./src/browserbase/types/agent_create_response.py">AgentCreateResponse</a></code>
- <code title="get /v1/agents/{agentId}">client.agents.<a href="./src/browserbase/resources/agents/agents.py">retrieve</a>(agent_id) -> <a href="./src/browserbase/types/agent_retrieve_response.py">AgentRetrieveResponse</a></code>
- <code title="patch /v1/agents/{agentId}">client.agents.<a href="./src/browserbase/resources/agents/agents.py">update</a>(agent_id, \*\*<a href="src/browserbase/types/agent_update_params.py">params</a>) -> <a href="./src/browserbase/types/agent_update_response.py">AgentUpdateResponse</a></code>
- <code title="get /v1/agents">client.agents.<a href="./src/browserbase/resources/agents/agents.py">list</a>(\*\*<a href="src/browserbase/types/agent_list_params.py">params</a>) -> <a href="./src/browserbase/types/agent_list_response.py">AgentListResponse</a></code>
- <code title="delete /v1/agents/{agentId}">client.agents.<a href="./src/browserbase/resources/agents/agents.py">delete</a>(agent_id) -> None</code>

## Runs

Types:

```python
from browserbase.types.agents import (
RunCreateResponse,
RunRetrieveResponse,
RunListResponse,
RunListMessagesResponse,
)
```

Methods:

- <code title="post /v1/agents/runs">client.agents.runs.<a href="./src/browserbase/resources/agents/runs.py">create</a>(\*\*<a href="src/browserbase/types/agents/run_create_params.py">params</a>) -> <a href="./src/browserbase/types/agents/run_create_response.py">RunCreateResponse</a></code>
- <code title="get /v1/agents/runs/{runId}">client.agents.runs.<a href="./src/browserbase/resources/agents/runs.py">retrieve</a>(run_id) -> <a href="./src/browserbase/types/agents/run_retrieve_response.py">RunRetrieveResponse</a></code>
- <code title="get /v1/agents/runs">client.agents.runs.<a href="./src/browserbase/resources/agents/runs.py">list</a>(\*\*<a href="src/browserbase/types/agents/run_list_params.py">params</a>) -> <a href="./src/browserbase/types/agents/run_list_response.py">RunListResponse</a></code>
- <code title="get /v1/agents/runs/{runId}/messages">client.agents.runs.<a href="./src/browserbase/resources/agents/runs.py">list_messages</a>(run_id, \*\*<a href="src/browserbase/types/agents/run_list_messages_params.py">params</a>) -> <a href="./src/browserbase/types/agents/run_list_messages_response.py">RunListMessagesResponse</a></code>
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "browserbase"
version = "1.13.0"
version = "1.14.0"
description = "The official Python library for the Browserbase API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
39 changes: 38 additions & 1 deletion src/browserbase/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@
)

if TYPE_CHECKING:
from .resources import search, contexts, projects, sessions, fetch_api, extensions, certificates
from .resources import agents, search, contexts, projects, sessions, fetch_api, extensions, certificates
from .resources.search import SearchResource, AsyncSearchResource
from .resources.contexts import ContextsResource, AsyncContextsResource
from .resources.projects import ProjectsResource, AsyncProjectsResource
from .resources.fetch_api import FetchAPIResource, AsyncFetchAPIResource
from .resources.extensions import ExtensionsResource, AsyncExtensionsResource
from .resources.certificates import CertificatesResource, AsyncCertificatesResource
from .resources.agents.agents import AgentsResource, AsyncAgentsResource
from .resources.sessions.sessions import SessionsResource, AsyncSessionsResource

__all__ = [
Expand Down Expand Up @@ -162,6 +163,12 @@ def sessions(self) -> SessionsResource:

return SessionsResource(self)

@cached_property
def agents(self) -> AgentsResource:
from .resources.agents import AgentsResource

return AgentsResource(self)

@cached_property
def with_raw_response(self) -> BrowserbaseWithRawResponse:
return BrowserbaseWithRawResponse(self)
Expand Down Expand Up @@ -381,6 +388,12 @@ def sessions(self) -> AsyncSessionsResource:

return AsyncSessionsResource(self)

@cached_property
def agents(self) -> AsyncAgentsResource:
from .resources.agents import AsyncAgentsResource

return AsyncAgentsResource(self)

@cached_property
def with_raw_response(self) -> AsyncBrowserbaseWithRawResponse:
return AsyncBrowserbaseWithRawResponse(self)
Expand Down Expand Up @@ -542,6 +555,12 @@ def sessions(self) -> sessions.SessionsResourceWithRawResponse:

return SessionsResourceWithRawResponse(self._client.sessions)

@cached_property
def agents(self) -> agents.AgentsResourceWithRawResponse:
from .resources.agents import AgentsResourceWithRawResponse

return AgentsResourceWithRawResponse(self._client.agents)


class AsyncBrowserbaseWithRawResponse:
_client: AsyncBrowserbase
Expand Down Expand Up @@ -591,6 +610,12 @@ def sessions(self) -> sessions.AsyncSessionsResourceWithRawResponse:

return AsyncSessionsResourceWithRawResponse(self._client.sessions)

@cached_property
def agents(self) -> agents.AsyncAgentsResourceWithRawResponse:
from .resources.agents import AsyncAgentsResourceWithRawResponse

return AsyncAgentsResourceWithRawResponse(self._client.agents)


class BrowserbaseWithStreamedResponse:
_client: Browserbase
Expand Down Expand Up @@ -640,6 +665,12 @@ def sessions(self) -> sessions.SessionsResourceWithStreamingResponse:

return SessionsResourceWithStreamingResponse(self._client.sessions)

@cached_property
def agents(self) -> agents.AgentsResourceWithStreamingResponse:
from .resources.agents import AgentsResourceWithStreamingResponse

return AgentsResourceWithStreamingResponse(self._client.agents)


class AsyncBrowserbaseWithStreamedResponse:
_client: AsyncBrowserbase
Expand Down Expand Up @@ -689,6 +720,12 @@ def sessions(self) -> sessions.AsyncSessionsResourceWithStreamingResponse:

return AsyncSessionsResourceWithStreamingResponse(self._client.sessions)

@cached_property
def agents(self) -> agents.AsyncAgentsResourceWithStreamingResponse:
from .resources.agents import AsyncAgentsResourceWithStreamingResponse

return AsyncAgentsResourceWithStreamingResponse(self._client.agents)


Client = Browserbase

Expand Down
2 changes: 1 addition & 1 deletion src/browserbase/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "browserbase"
__version__ = "1.13.0" # x-release-please-version
__version__ = "1.14.0" # x-release-please-version
14 changes: 14 additions & 0 deletions src/browserbase/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .agents import (
AgentsResource,
AsyncAgentsResource,
AgentsResourceWithRawResponse,
AsyncAgentsResourceWithRawResponse,
AgentsResourceWithStreamingResponse,
AsyncAgentsResourceWithStreamingResponse,
)
from .search import (
SearchResource,
AsyncSearchResource,
Expand Down Expand Up @@ -100,4 +108,10 @@
"AsyncSessionsResourceWithRawResponse",
"SessionsResourceWithStreamingResponse",
"AsyncSessionsResourceWithStreamingResponse",
"AgentsResource",
"AsyncAgentsResource",
"AgentsResourceWithRawResponse",
"AsyncAgentsResourceWithRawResponse",
"AgentsResourceWithStreamingResponse",
"AsyncAgentsResourceWithStreamingResponse",
]
33 changes: 33 additions & 0 deletions src/browserbase/resources/agents/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .runs import (
RunsResource,
AsyncRunsResource,
RunsResourceWithRawResponse,
AsyncRunsResourceWithRawResponse,
RunsResourceWithStreamingResponse,
AsyncRunsResourceWithStreamingResponse,
)
from .agents import (
AgentsResource,
AsyncAgentsResource,
AgentsResourceWithRawResponse,
AsyncAgentsResourceWithRawResponse,
AgentsResourceWithStreamingResponse,
AsyncAgentsResourceWithStreamingResponse,
)

__all__ = [
"RunsResource",
"AsyncRunsResource",
"RunsResourceWithRawResponse",
"AsyncRunsResourceWithRawResponse",
"RunsResourceWithStreamingResponse",
"AsyncRunsResourceWithStreamingResponse",
"AgentsResource",
"AsyncAgentsResource",
"AgentsResourceWithRawResponse",
"AsyncAgentsResourceWithRawResponse",
"AgentsResourceWithStreamingResponse",
"AsyncAgentsResourceWithStreamingResponse",
]
Loading