diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2537c1f..f1c1e58 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.4.0" + ".": "0.5.0" } diff --git a/.stats.yml b/.stats.yml index e939ef2..46cd666 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-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 diff --git a/CHANGELOG.md b/CHANGELOG.md index d139393..a0c3ec5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/package.json b/package.json index 7663d26..51fb6c6 100644 --- a/package.json +++ b/package.json @@ -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 ", "types": "dist/index.d.ts", diff --git a/src/resources/agent.ts b/src/resources/agent.ts index 65182b7..ba88f5a 100644 --- a/src/resources/agent.ts +++ b/src/resources/agent.ts @@ -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; + /** * Body param: Whether to run the agent asynchronously on the server. When set to * true, use callback parameter to receive events. @@ -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. diff --git a/src/resources/top-level.ts b/src/resources/top-level.ts index f442726..7217110 100644 --- a/src/resources/top-level.ts +++ b/src/resources/top-level.ts @@ -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; + /** * Body param: Whether to run the agent asynchronously on the server. When set to * true, use callback parameter to receive events. @@ -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. diff --git a/src/version.ts b/src/version.ts index 4e7f788..1f5d158 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.4.0'; // x-release-please-version +export const VERSION = '0.5.0'; // x-release-please-version diff --git a/tests/api-resources/agent.test.ts b/tests/api-resources/agent.test.ts index 866b146..0a9e9df 100644 --- a/tests/api-resources/agent.test.ts +++ b/tests/api-resources/agent.test.ts @@ -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' }], diff --git a/tests/api-resources/top-level.test.ts b/tests/api-resources/top-level.test.ts index c5d2f63..fc83cb0 100644 --- a/tests/api-resources/top-level.test.ts +++ b/tests/api-resources/top-level.test.ts @@ -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' }],