1515
1616# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
1717
18- from typing import Dict , List , Union , Optional
18+ from typing import List , Union , Optional
1919from typing_extensions import Literal , Annotated , TypeAlias
2020
2121from .._utils import PropertyInfo
2222from .._models import BaseModel
2323from .environment import Environment
24- from .allowed_tools import AllowedTools
25-
26- __all__ = [
27- "Agent" ,
28- "BaseEnvironment" ,
29- "Tool" ,
30- "ToolCodeExecution" ,
31- "ToolGoogleSearch" ,
32- "ToolURLContext" ,
33- "ToolMCPServer" ,
34- ]
24+
25+ __all__ = ["Agent" , "BaseEnvironment" , "Tool" , "ToolCodeExecution" , "ToolGoogleSearch" , "ToolURLContext" ]
3526
3627BaseEnvironment : TypeAlias = Union [Environment , str ]
3728
@@ -57,26 +48,8 @@ class ToolURLContext(BaseModel):
5748 type : Literal ["url_context" ]
5849
5950
60- class ToolMCPServer (BaseModel ):
61- """A MCPServer is a server that can be called by the model to perform actions."""
62-
63- type : Literal ["mcp_server" ]
64-
65- allowed_tools : Optional [List [AllowedTools ]] = None
66- """The allowed tools."""
67-
68- headers : Optional [Dict [str , str ]] = None
69- """Optional: Fields for authentication headers, timeouts, etc., if needed."""
70-
71- name : Optional [str ] = None
72- """The name of the MCPServer."""
73-
74- url : Optional [str ] = None
75- """The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp" """
76-
77-
7851Tool : TypeAlias = Annotated [
79- Union [ToolCodeExecution , ToolGoogleSearch , ToolURLContext , ToolMCPServer ], PropertyInfo (discriminator = "type" )
52+ Union [ToolCodeExecution , ToolGoogleSearch , ToolURLContext ], PropertyInfo (discriminator = "type" )
8053]
8154
8255
0 commit comments