Skip to content

Commit 579fca2

Browse files
release: 0.3.0 (#4)
* feat(api): manual updates added datastores * release: 0.3.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 3c3c56c commit 579fca2

File tree

8 files changed

+50
-6
lines changed

8 files changed

+50
-6
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.2.0"
2+
".": "0.3.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 3
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/agentbase%2Fagentbase-ef0ae966d97c74423a09430a8a0c419b5cb398b5f1c6e35ca01363ca3151d548.yml
3-
openapi_spec_hash: 46fa0bf1eb5482a17c4ddfe277253e9f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/agentbase%2Fagentbase-b248631a2800e6d0f22a253717a63a551d9305e4c990dceb2f5c5361c519fa24.yml
3+
openapi_spec_hash: 4c06f6155fb614add9b30cd294266e11
44
config_hash: 2ad1177ae9ac1a57dc61c0f7e142fc06

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.3.0 (2025-10-03)
4+
5+
Full Changelog: [v0.2.0...v0.3.0](https://github.com/AgentbaseHQ/agentbase-python/compare/v0.2.0...v0.3.0)
6+
7+
### Features
8+
9+
* **api:** manual updates ([1356607](https://github.com/AgentbaseHQ/agentbase-python/commit/1356607bd114f47701ad219980afd39ad510c07f))
10+
311
## 0.2.0 (2025-10-03)
412

513
Full Changelog: [v0.1.1...v0.2.0](https://github.com/AgentbaseHQ/agentbase-python/compare/v0.1.1...v0.2.0)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "agentbase-sdk"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
description = "The official Python library for the agentbase API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/agentbase/_client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ def run_agent(
202202
*,
203203
message: str,
204204
session: str | Omit = omit,
205+
datastores: Iterable[client_run_agent_params.Datastore] | Omit = omit,
205206
mcp_servers: Iterable[client_run_agent_params.McpServer] | Omit = omit,
206207
mode: Literal["flash", "fast", "max"] | Omit = omit,
207208
rules: SequenceNotStr[str] | Omit = omit,
@@ -230,6 +231,9 @@ def run_agent(
230231
session: The session ID to continue the agent session conversation. If not provided, a
231232
new session will be created.
232233
234+
datastores: A set of datastores for the agent to utilize. Each object must include a `id`
235+
and `name`.
236+
233237
mcp_servers: A list of MCP server configurations. Each object must include a `serverName` and
234238
`serverUrl`.
235239
@@ -256,6 +260,7 @@ def run_agent(
256260
body=maybe_transform(
257261
{
258262
"message": message,
263+
"datastores": datastores,
259264
"mcp_servers": mcp_servers,
260265
"mode": mode,
261266
"rules": rules,
@@ -451,6 +456,7 @@ async def run_agent(
451456
*,
452457
message: str,
453458
session: str | Omit = omit,
459+
datastores: Iterable[client_run_agent_params.Datastore] | Omit = omit,
454460
mcp_servers: Iterable[client_run_agent_params.McpServer] | Omit = omit,
455461
mode: Literal["flash", "fast", "max"] | Omit = omit,
456462
rules: SequenceNotStr[str] | Omit = omit,
@@ -479,6 +485,9 @@ async def run_agent(
479485
session: The session ID to continue the agent session conversation. If not provided, a
480486
new session will be created.
481487
488+
datastores: A set of datastores for the agent to utilize. Each object must include a `id`
489+
and `name`.
490+
482491
mcp_servers: A list of MCP server configurations. Each object must include a `serverName` and
483492
`serverUrl`.
484493
@@ -505,6 +514,7 @@ async def run_agent(
505514
body=await async_maybe_transform(
506515
{
507516
"message": message,
517+
"datastores": datastores,
508518
"mcp_servers": mcp_servers,
509519
"mode": mode,
510520
"rules": rules,

src/agentbase/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "agentbase"
4-
__version__ = "0.2.0" # x-release-please-version
4+
__version__ = "0.3.0" # x-release-please-version

src/agentbase/types/client_run_agent_params.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from .._types import SequenceNotStr
99
from .._utils import PropertyInfo
1010

11-
__all__ = ["ClientRunAgentParams", "McpServer"]
11+
__all__ = ["ClientRunAgentParams", "Datastore", "McpServer"]
1212

1313

1414
class ClientRunAgentParams(TypedDict, total=False):
@@ -21,6 +21,12 @@ class ClientRunAgentParams(TypedDict, total=False):
2121
If not provided, a new session will be created.
2222
"""
2323

24+
datastores: Iterable[Datastore]
25+
"""A set of datastores for the agent to utilize.
26+
27+
Each object must include a `id` and `name`.
28+
"""
29+
2430
mcp_servers: Iterable[McpServer]
2531
"""A list of MCP server configurations.
2632
@@ -43,6 +49,14 @@ class ClientRunAgentParams(TypedDict, total=False):
4349
"""A system prompt to provide system information to the agent."""
4450

4551

52+
class Datastore(TypedDict, total=False):
53+
id: Required[str]
54+
"""The ID of the datastore."""
55+
56+
name: Required[str]
57+
"""The name of the datastore."""
58+
59+
4660
class McpServer(TypedDict, total=False):
4761
server_name: Required[Annotated[str, PropertyInfo(alias="serverName")]]
4862
"""Name of the MCP server."""

tests/api_resources/test_client.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ def test_method_run_agent_with_all_params(self, client: Agentbase) -> None:
2929
client_stream = client.run_agent(
3030
message="message",
3131
session="session",
32+
datastores=[
33+
{
34+
"id": "id",
35+
"name": "name",
36+
}
37+
],
3238
mcp_servers=[
3339
{
3440
"server_name": "serverName",
@@ -87,6 +93,12 @@ async def test_method_run_agent_with_all_params(self, async_client: AsyncAgentba
8793
client_stream = await async_client.run_agent(
8894
message="message",
8995
session="session",
96+
datastores=[
97+
{
98+
"id": "id",
99+
"name": "name",
100+
}
101+
],
90102
mcp_servers=[
91103
{
92104
"server_name": "serverName",

0 commit comments

Comments
 (0)