From 69a7acadd162150cf9ae54fbebb2c200498e9507 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Oct 2025 20:30:23 +0000 Subject: [PATCH 1/2] feat(api): manual updates for parameter updates --- .stats.yml | 4 ++-- src/agentbase/_client.py | 12 ++++++------ src/agentbase/types/client_run_agent_params.py | 4 ++-- tests/api_resources/test_client.py | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.stats.yml b/.stats.yml index b8a0082..40509b6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 3 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/agentbase%2Fagentbase-89d6a8ac685cda7f8852372375d3cfcf973303a3f9a2427611a80612ec810bdd.yml -openapi_spec_hash: 8d81d4a97aec02004be2289ff4a35baf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/agentbase%2Fagentbase-ef0ae966d97c74423a09430a8a0c419b5cb398b5f1c6e35ca01363ca3151d548.yml +openapi_spec_hash: 46fa0bf1eb5482a17c4ddfe277253e9f config_hash: 2ad1177ae9ac1a57dc61c0f7e142fc06 diff --git a/src/agentbase/_client.py b/src/agentbase/_client.py index 7ede68b..fce3a48 100644 --- a/src/agentbase/_client.py +++ b/src/agentbase/_client.py @@ -205,7 +205,7 @@ def run_agent( mcp_servers: Iterable[client_run_agent_params.McpServer] | Omit = omit, mode: Literal["flash", "fast", "max"] | Omit = omit, rules: SequenceNotStr[str] | Omit = omit, - streaming: bool | Omit = omit, + streaming_tokens: bool | Omit = omit, system: str | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -238,7 +238,7 @@ def run_agent( rules: A list of constraints that the agent must follow. - streaming: Whether to stream the agent messages token by token. + streaming_tokens: Whether to stream the agent messages token by token. system: A system prompt to provide system information to the agent. @@ -259,7 +259,7 @@ def run_agent( "mcp_servers": mcp_servers, "mode": mode, "rules": rules, - "streaming": streaming, + "streaming_tokens": streaming_tokens, "system": system, }, client_run_agent_params.ClientRunAgentParams, @@ -454,7 +454,7 @@ async def run_agent( mcp_servers: Iterable[client_run_agent_params.McpServer] | Omit = omit, mode: Literal["flash", "fast", "max"] | Omit = omit, rules: SequenceNotStr[str] | Omit = omit, - streaming: bool | Omit = omit, + streaming_tokens: bool | Omit = omit, system: str | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -487,7 +487,7 @@ async def run_agent( rules: A list of constraints that the agent must follow. - streaming: Whether to stream the agent messages token by token. + streaming_tokens: Whether to stream the agent messages token by token. system: A system prompt to provide system information to the agent. @@ -508,7 +508,7 @@ async def run_agent( "mcp_servers": mcp_servers, "mode": mode, "rules": rules, - "streaming": streaming, + "streaming_tokens": streaming_tokens, "system": system, }, client_run_agent_params.ClientRunAgentParams, diff --git a/src/agentbase/types/client_run_agent_params.py b/src/agentbase/types/client_run_agent_params.py index 90c2e92..0b2599f 100644 --- a/src/agentbase/types/client_run_agent_params.py +++ b/src/agentbase/types/client_run_agent_params.py @@ -21,7 +21,7 @@ class ClientRunAgentParams(TypedDict, total=False): If not provided, a new session will be created. """ - mcp_servers: Annotated[Iterable[McpServer], PropertyInfo(alias="mcpServers")] + mcp_servers: Iterable[McpServer] """A list of MCP server configurations. Each object must include a `serverName` and `serverUrl`. @@ -36,7 +36,7 @@ class ClientRunAgentParams(TypedDict, total=False): rules: SequenceNotStr[str] """A list of constraints that the agent must follow.""" - streaming: bool + streaming_tokens: bool """Whether to stream the agent messages token by token.""" system: str diff --git a/tests/api_resources/test_client.py b/tests/api_resources/test_client.py index 5c8389a..34c7e46 100644 --- a/tests/api_resources/test_client.py +++ b/tests/api_resources/test_client.py @@ -37,7 +37,7 @@ def test_method_run_agent_with_all_params(self, client: Agentbase) -> None: ], mode="flash", rules=["string"], - streaming=True, + streaming_tokens=True, system="system", ) client_stream.response.close() @@ -95,7 +95,7 @@ async def test_method_run_agent_with_all_params(self, async_client: AsyncAgentba ], mode="flash", rules=["string"], - streaming=True, + streaming_tokens=True, system="system", ) await client_stream.response.aclose() From 534a7682d8616ac86549a47facd885ebe76d52af Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Oct 2025 20:30:36 +0000 Subject: [PATCH 2/2] release: 0.2.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/agentbase/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 5547f83..10f3091 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.1" + ".": "0.2.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e36cca..a338578 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.2.0 (2025-10-03) + +Full Changelog: [v0.1.1...v0.2.0](https://github.com/AgentbaseHQ/agentbase-python/compare/v0.1.1...v0.2.0) + +### Features + +* **api:** manual updates for parameter updates ([69a7aca](https://github.com/AgentbaseHQ/agentbase-python/commit/69a7acadd162150cf9ae54fbebb2c200498e9507)) + ## 0.1.1 (2025-09-22) Full Changelog: [v0.1.0...v0.1.1](https://github.com/AgentbaseHQ/agentbase-python/compare/v0.1.0...v0.1.1) diff --git a/pyproject.toml b/pyproject.toml index c968a82..272eaa0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "agentbase-sdk" -version = "0.1.1" +version = "0.2.0" description = "The official Python library for the agentbase API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/agentbase/_version.py b/src/agentbase/_version.py index 4178858..aa33a9f 100644 --- a/src/agentbase/_version.py +++ b/src/agentbase/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "agentbase" -__version__ = "0.1.1" # x-release-please-version +__version__ = "0.2.0" # x-release-please-version