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 @@
{
".": "0.1.1"
".": "0.2.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
12 changes: 6 additions & 6 deletions src/agentbase/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.

Expand All @@ -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,
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.

Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/agentbase/_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__ = "agentbase"
__version__ = "0.1.1" # x-release-please-version
__version__ = "0.2.0" # x-release-please-version
4 changes: 2 additions & 2 deletions src/agentbase/types/client_run_agent_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/api_resources/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down