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.4.0"
".": "0.5.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-461274f650eccdf115b96ee1dbf1c0d4eb31485992cedc84ee0187aec72d63a5.yml
openapi_spec_hash: b8fa5fd0c89d9004d608af6061d0bf28
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/agentbase%2Fagentbase-c12be3e0fb0d0456a9dfdb9ba32d89ef3ffcd3561e945b22aff45ead12453358.yml
openapi_spec_hash: fea6f0cc71a01188f51a84d6a7ba7258
config_hash: 8d9b688cf969a1760b1300b65b80e796
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.5.0 (2025-11-06)

Full Changelog: [v0.4.0...v0.5.0](https://github.com/AgentbaseHQ/agentbase-sdk/compare/v0.4.0...v0.5.0)

### Features

* **api:** manual updates ([87c476f](https://github.com/AgentbaseHQ/agentbase-sdk/commit/87c476fe14a7fdfa3964f90d61c7695eeea4b92a))

## 0.4.0 (2025-10-11)

Full Changelog: [v0.3.1...v0.4.0](https://github.com/AgentbaseHQ/agentbase-sdk/compare/v0.3.1...v0.4.0)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agentbase-sdk",
"version": "0.4.0",
"version": "0.5.0",
"description": "The official TypeScript library for the Agentbase API",
"author": "Agentbase <team@agentbase.sh>",
"types": "dist/index.d.ts",
Expand Down
20 changes: 20 additions & 0 deletions src/resources/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ export interface AgentRunParams {
*/
session?: string;

/**
* Body param: A set of agent configurations that enables the agent to transfer
* conversations to other specialized agents. When provided, the main agent will
* have access to seamless handoffs between agents based on the conversation
* context.
*/
agents?: Array<AgentRunParams.Agent>;

/**
* Body param: Whether to run the agent asynchronously on the server. When set to
* true, use callback parameter to receive events.
Expand Down Expand Up @@ -111,6 +119,18 @@ export interface AgentRunParams {
}

export namespace AgentRunParams {
export interface Agent {
/**
* Description of what this agent handles
*/
description: string;

/**
* The name of the agent to transfer to
*/
name: string;
}

/**
* A callback endpoint configuration to send agent message events back to. Use with
* background true.
Expand Down
20 changes: 20 additions & 0 deletions src/resources/top-level.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ export interface RunAgentParams {
*/
session?: string;

/**
* Body param: A set of agent configurations that enables the agent to transfer
* conversations to other specialized agents. When provided, the main agent will
* have access to seamless handoffs between agents based on the conversation
* context.
*/
agents?: Array<RunAgentParams.Agent>;

/**
* Body param: Whether to run the agent asynchronously on the server. When set to
* true, use callback parameter to receive events.
Expand Down Expand Up @@ -82,6 +90,18 @@ export interface RunAgentParams {
}

export namespace RunAgentParams {
export interface Agent {
/**
* Description of what this agent handles
*/
description: string;

/**
* The name of the agent to transfer to
*/
name: string;
}

/**
* A callback endpoint configuration to send agent message events back to. Use with
* background true.
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.4.0'; // x-release-please-version
export const VERSION = '0.5.0'; // x-release-please-version
1 change: 1 addition & 0 deletions tests/api-resources/agent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ describe('resource agent', () => {
const response = await client.agent.run({
message: 'message',
session: 'session',
agents: [{ description: 'description', name: 'name' }],
background: true,
callback: { url: 'https://example.com', headers: { foo: 'string' } },
datastores: [{ id: 'id', name: 'name' }],
Expand Down
1 change: 1 addition & 0 deletions tests/api-resources/top-level.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ describe('top level methods', () => {
const response = await client.runAgent({
message: 'message',
session: 'session',
agents: [{ description: 'description', name: 'name' }],
background: true,
callback: { url: 'https://example.com', headers: { foo: 'string' } },
datastores: [{ id: 'id', name: 'name' }],
Expand Down