@@ -19182,6 +19182,8 @@ type ToolUnion struct {
1918219182 ServerDescription string `json:"server_description"`
1918319183 // This field is from variant [ToolMcp].
1918419184 ServerURL string `json:"server_url"`
19185+ // This field is from variant [ToolMcp].
19186+ TunnelID string `json:"tunnel_id"`
1918519187 // This field is from variant [ToolCodeInterpreter].
1918619188 Container ToolCodeInterpreterContainerUnion `json:"container"`
1918719189 // This field is from variant [ToolImageGeneration].
@@ -19238,6 +19240,7 @@ type ToolUnion struct {
1923819240 RequireApproval respjson.Field
1923919241 ServerDescription respjson.Field
1924019242 ServerURL respjson.Field
19243+ TunnelID respjson.Field
1924119244 Container respjson.Field
1924219245 Action respjson.Field
1924319246 Background respjson.Field
@@ -19482,8 +19485,8 @@ type ToolMcp struct {
1948219485 // OAuth authorization flow and provide the token here.
1948319486 Authorization string `json:"authorization"`
1948419487 // Identifier for service connectors, like those available in ChatGPT. One of
19485- // `server_url` or `connector_id ` must be provided. Learn more about service
19486- // connectors
19488+ // `server_url`, `connector_id`, or `tunnel_id ` must be provided. Learn more about
19489+ // service connectors
1948719490 // [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
1948819491 //
1948919492 // Currently supported `connector_id` values are:
@@ -19510,9 +19513,12 @@ type ToolMcp struct {
1951019513 RequireApproval ToolMcpRequireApprovalUnion `json:"require_approval" api:"nullable"`
1951119514 // Optional description of the MCP server, used to provide more context.
1951219515 ServerDescription string `json:"server_description"`
19513- // The URL for the MCP server. One of `server_url` or `connector_id` must be
19514- // provided.
19516+ // The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
19517+ // must be provided.
1951519518 ServerURL string `json:"server_url" format:"uri"`
19519+ // The Secure MCP Tunnel ID to use instead of a direct server URL. One of
19520+ // `server_url`, `connector_id`, or `tunnel_id` must be provided.
19521+ TunnelID string `json:"tunnel_id"`
1951619522 // JSON contains metadata for fields, check presence with [respjson.Field.Valid].
1951719523 JSON struct {
1951819524 ServerLabel respjson.Field
@@ -19525,6 +19531,7 @@ type ToolMcp struct {
1952519531 RequireApproval respjson.Field
1952619532 ServerDescription respjson.Field
1952719533 ServerURL respjson.Field
19534+ TunnelID respjson.Field
1952819535 ExtraFields map[string]respjson.Field
1952919536 raw string
1953019537 } `json:"-"`
@@ -20283,6 +20290,14 @@ func (u ToolUnionParam) GetServerURL() *string {
2028320290 return nil
2028420291}
2028520292
20293+ // Returns a pointer to the underlying variant's property, if present.
20294+ func (u ToolUnionParam) GetTunnelID() *string {
20295+ if vt := u.OfMcp; vt != nil && vt.TunnelID.Valid() {
20296+ return &vt.TunnelID.Value
20297+ }
20298+ return nil
20299+ }
20300+
2028620301// Returns a pointer to the underlying variant's property, if present.
2028720302func (u ToolUnionParam) GetContainer() *ToolCodeInterpreterContainerUnionParam {
2028820303 if vt := u.OfCodeInterpreter; vt != nil {
@@ -20787,9 +20802,12 @@ type ToolMcpParam struct {
2078720802 DeferLoading param.Opt[bool] `json:"defer_loading,omitzero"`
2078820803 // Optional description of the MCP server, used to provide more context.
2078920804 ServerDescription param.Opt[string] `json:"server_description,omitzero"`
20790- // The URL for the MCP server. One of `server_url` or `connector_id` must be
20791- // provided.
20805+ // The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
20806+ // must be provided.
2079220807 ServerURL param.Opt[string] `json:"server_url,omitzero" format:"uri"`
20808+ // The Secure MCP Tunnel ID to use instead of a direct server URL. One of
20809+ // `server_url`, `connector_id`, or `tunnel_id` must be provided.
20810+ TunnelID param.Opt[string] `json:"tunnel_id,omitzero"`
2079320811 // List of allowed tool names or a filter object.
2079420812 AllowedTools ToolMcpAllowedToolsUnionParam `json:"allowed_tools,omitzero"`
2079520813 // Optional HTTP headers to send to the MCP server. Use for authentication or other
@@ -20798,8 +20816,8 @@ type ToolMcpParam struct {
2079820816 // Specify which of the MCP server's tools require approval.
2079920817 RequireApproval ToolMcpRequireApprovalUnionParam `json:"require_approval,omitzero"`
2080020818 // Identifier for service connectors, like those available in ChatGPT. One of
20801- // `server_url` or `connector_id ` must be provided. Learn more about service
20802- // connectors
20819+ // `server_url`, `connector_id`, or `tunnel_id ` must be provided. Learn more about
20820+ // service connectors
2080320821 // [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
2080420822 //
2080520823 // Currently supported `connector_id` values are:
0 commit comments