Skip to content

Commit eb49f4e

Browse files
feat(api): api update
1 parent a2cd14e commit eb49f4e

3 files changed

Lines changed: 45 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 23
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta/warp-api-6a1e8db241f6b3b708f177dc8e53bc07c807bff5f6095032f049e11d89e68f81.yml
3-
openapi_spec_hash: 7a7ee0d18c5230c3a6d583a8bbf6d007
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta/warp-api-0f3dae898b870134848191cdbb5e698902865948eb4639be341112c80a6c9e42.yml
3+
openapi_spec_hash: 64c7e9657b989779d463734cacf11bfb
44
config_hash: 619fb7e70fce0afe18d08987282fce4e

src/resources/agent/agent_.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
import { APIResource } from '../../core/resource';
4+
import * as AgentAPI from './agent';
45
import { APIPromise } from '../../core/api-promise';
56
import { buildHeaders } from '../../internal/headers';
67
import { RequestOptions } from '../../internal/request-options';
@@ -172,6 +173,12 @@ export interface AgentResponse {
172173
*/
173174
inference_providers?: AgentResponse.InferenceProviders;
174175

176+
/**
177+
* MCP server configurations attached to this agent by default. Run-level MCP
178+
* config takes precedence over this agent-level default.
179+
*/
180+
mcp_servers?: { [key: string]: AgentAPI.McpServerConfig };
181+
175182
/**
176183
* Optional base prompt for this agent
177184
*/
@@ -300,6 +307,12 @@ export interface CreateAgentRequest {
300307
*/
301308
inference_providers?: CreateAgentRequest.InferenceProviders;
302309

310+
/**
311+
* Optional map of MCP server configurations by name to attach to runs executed by
312+
* this agent. Run-level MCP config takes precedence over this agent-level default.
313+
*/
314+
mcp_servers?: { [key: string]: AgentAPI.McpServerConfig };
315+
303316
/**
304317
* Optional list of memory stores to attach to the agent. Each store must be
305318
* team-owned by the same team as the agent. Duplicate UIDs within a single request
@@ -460,6 +473,13 @@ export interface UpdateAgentRequest {
460473
*/
461474
inference_providers?: UpdateAgentRequest.InferenceProviders | null;
462475

476+
/**
477+
* Replacement map of MCP server configurations by name. Omit to leave unchanged,
478+
* pass an empty object to clear, or pass a non-empty object to replace. Run-level
479+
* MCP config takes precedence over this agent-level default.
480+
*/
481+
mcp_servers?: { [key: string]: AgentAPI.McpServerConfig };
482+
463483
/**
464484
* Replacement list of memory stores. Omit to leave unchanged, pass an empty array
465485
* to clear, or pass a non-empty array to replace.
@@ -612,6 +632,12 @@ export interface AgentCreateParams {
612632
*/
613633
inference_providers?: AgentCreateParams.InferenceProviders;
614634

635+
/**
636+
* Optional map of MCP server configurations by name to attach to runs executed by
637+
* this agent. Run-level MCP config takes precedence over this agent-level default.
638+
*/
639+
mcp_servers?: { [key: string]: AgentAPI.McpServerConfig };
640+
615641
/**
616642
* Optional list of memory stores to attach to the agent. Each store must be
617643
* team-owned by the same team as the agent. Duplicate UIDs within a single request
@@ -761,6 +787,13 @@ export interface AgentUpdateParams {
761787
*/
762788
inference_providers?: AgentUpdateParams.InferenceProviders | null;
763789

790+
/**
791+
* Replacement map of MCP server configurations by name. Omit to leave unchanged,
792+
* pass an empty object to clear, or pass a non-empty object to replace. Run-level
793+
* MCP config takes precedence over this agent-level default.
794+
*/
795+
mcp_servers?: { [key: string]: AgentAPI.McpServerConfig };
796+
764797
/**
765798
* Replacement list of memory stores. Omit to leave unchanged, pass an empty array
766799
* to clear, or pass a non-empty array to replace.

tests/api-resources/agent/agent_.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ describe('resource agent', () => {
3939
role_arn: 'role_arn',
4040
},
4141
},
42+
mcp_servers: {
43+
foo: {
44+
args: ['string'],
45+
command: 'command',
46+
env: { foo: 'string' },
47+
headers: { foo: 'string' },
48+
url: 'https://example.com',
49+
warp_id: 'warp_id',
50+
},
51+
},
4252
memory_stores: [
4353
{
4454
access: 'read_write',

0 commit comments

Comments
 (0)