|
1 | 1 | // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. |
2 | 2 |
|
3 | 3 | import { APIResource } from '../../core/resource'; |
| 4 | +import * as AgentAPI from './agent'; |
4 | 5 | import { APIPromise } from '../../core/api-promise'; |
5 | 6 | import { buildHeaders } from '../../internal/headers'; |
6 | 7 | import { RequestOptions } from '../../internal/request-options'; |
@@ -172,6 +173,12 @@ export interface AgentResponse { |
172 | 173 | */ |
173 | 174 | inference_providers?: AgentResponse.InferenceProviders; |
174 | 175 |
|
| 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 | + |
175 | 182 | /** |
176 | 183 | * Optional base prompt for this agent |
177 | 184 | */ |
@@ -300,6 +307,12 @@ export interface CreateAgentRequest { |
300 | 307 | */ |
301 | 308 | inference_providers?: CreateAgentRequest.InferenceProviders; |
302 | 309 |
|
| 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 | + |
303 | 316 | /** |
304 | 317 | * Optional list of memory stores to attach to the agent. Each store must be |
305 | 318 | * team-owned by the same team as the agent. Duplicate UIDs within a single request |
@@ -460,6 +473,13 @@ export interface UpdateAgentRequest { |
460 | 473 | */ |
461 | 474 | inference_providers?: UpdateAgentRequest.InferenceProviders | null; |
462 | 475 |
|
| 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 | + |
463 | 483 | /** |
464 | 484 | * Replacement list of memory stores. Omit to leave unchanged, pass an empty array |
465 | 485 | * to clear, or pass a non-empty array to replace. |
@@ -612,6 +632,12 @@ export interface AgentCreateParams { |
612 | 632 | */ |
613 | 633 | inference_providers?: AgentCreateParams.InferenceProviders; |
614 | 634 |
|
| 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 | + |
615 | 641 | /** |
616 | 642 | * Optional list of memory stores to attach to the agent. Each store must be |
617 | 643 | * team-owned by the same team as the agent. Duplicate UIDs within a single request |
@@ -761,6 +787,13 @@ export interface AgentUpdateParams { |
761 | 787 | */ |
762 | 788 | inference_providers?: AgentUpdateParams.InferenceProviders | null; |
763 | 789 |
|
| 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 | + |
764 | 797 | /** |
765 | 798 | * Replacement list of memory stores. Omit to leave unchanged, pass an empty array |
766 | 799 | * to clear, or pass a non-empty array to replace. |
|
0 commit comments