@@ -6595,6 +6595,122 @@ components:
6595
6595
title : OpenAIResponseInputMessageContentText
6596
6596
description : >-
6597
6597
Text content for input messages in OpenAI response format.
6598
+ OpenAIResponseInputToolFileSearch :
6599
+ type : object
6600
+ properties :
6601
+ type :
6602
+ type : string
6603
+ const : file_search
6604
+ default : file_search
6605
+ description : >-
6606
+ Tool type identifier, always "file_search"
6607
+ vector_store_ids :
6608
+ type : array
6609
+ items :
6610
+ type : string
6611
+ description : >-
6612
+ List of vector store identifiers to search within
6613
+ filters :
6614
+ type : object
6615
+ additionalProperties :
6616
+ oneOf :
6617
+ - type : ' null'
6618
+ - type : boolean
6619
+ - type : number
6620
+ - type : string
6621
+ - type : array
6622
+ - type : object
6623
+ description : >-
6624
+ (Optional) Additional filters to apply to the search
6625
+ max_num_results :
6626
+ type : integer
6627
+ default : 10
6628
+ description : >-
6629
+ (Optional) Maximum number of search results to return (1-50)
6630
+ ranking_options :
6631
+ type : object
6632
+ properties :
6633
+ ranker :
6634
+ type : string
6635
+ description : >-
6636
+ (Optional) Name of the ranking algorithm to use
6637
+ score_threshold :
6638
+ type : number
6639
+ default : 0.0
6640
+ description : >-
6641
+ (Optional) Minimum relevance score threshold for results
6642
+ additionalProperties : false
6643
+ description : >-
6644
+ (Optional) Options for ranking and scoring search results
6645
+ additionalProperties : false
6646
+ required :
6647
+ - type
6648
+ - vector_store_ids
6649
+ title : OpenAIResponseInputToolFileSearch
6650
+ description : >-
6651
+ File search tool configuration for OpenAI response inputs.
6652
+ OpenAIResponseInputToolFunction :
6653
+ type : object
6654
+ properties :
6655
+ type :
6656
+ type : string
6657
+ const : function
6658
+ default : function
6659
+ description : Tool type identifier, always "function"
6660
+ name :
6661
+ type : string
6662
+ description : Name of the function that can be called
6663
+ description :
6664
+ type : string
6665
+ description : >-
6666
+ (Optional) Description of what the function does
6667
+ parameters :
6668
+ type : object
6669
+ additionalProperties :
6670
+ oneOf :
6671
+ - type : ' null'
6672
+ - type : boolean
6673
+ - type : number
6674
+ - type : string
6675
+ - type : array
6676
+ - type : object
6677
+ description : >-
6678
+ (Optional) JSON schema defining the function's parameters
6679
+ strict :
6680
+ type : boolean
6681
+ description : >-
6682
+ (Optional) Whether to enforce strict parameter validation
6683
+ additionalProperties : false
6684
+ required :
6685
+ - type
6686
+ - name
6687
+ title : OpenAIResponseInputToolFunction
6688
+ description : >-
6689
+ Function tool configuration for OpenAI response inputs.
6690
+ OpenAIResponseInputToolWebSearch :
6691
+ type : object
6692
+ properties :
6693
+ type :
6694
+ oneOf :
6695
+ - type : string
6696
+ const : web_search
6697
+ - type : string
6698
+ const : web_search_preview
6699
+ - type : string
6700
+ const : web_search_preview_2025_03_11
6701
+ default : web_search
6702
+ description : Web search tool type variant to use
6703
+ search_context_size :
6704
+ type : string
6705
+ default : medium
6706
+ description : >-
6707
+ (Optional) Size of search context, must be "low", "medium", or "high"
6708
+ additionalProperties : false
6709
+ required :
6710
+ - type
6711
+ title : OpenAIResponseInputToolWebSearch
6712
+ description : >-
6713
+ Web search tool configuration for OpenAI response inputs.
6598
6714
OpenAIResponseMCPApprovalRequest :
6599
6715
type : object
6600
6716
properties :
@@ -6736,6 +6852,12 @@ components:
6736
6852
type : number
6737
6853
description : >-
6738
6854
(Optional) Nucleus sampling parameter used for generation
6855
+ tools :
6856
+ type : array
6857
+ items :
6858
+ $ref : ' #/components/schemas/OpenAIResponseTool'
6859
+ description : >-
6860
+ (Optional) An array of tools the model may call while generating a response.
6739
6861
truncation :
6740
6862
type : string
6741
6863
description : >-
@@ -7088,123 +7210,81 @@ components:
7088
7210
title : OpenAIResponseText
7089
7211
description : >-
7090
7212
Text response configuration for OpenAI responses.
7091
- ResponseShieldSpec :
7092
- type : object
7093
- properties :
7094
- type :
7095
- type : string
7096
- description : The type/identifier of the shield.
7097
- additionalProperties : false
7098
- required :
7099
- - type
7100
- title : ResponseShieldSpec
7101
- description : >-
7102
- Specification for a shield to apply during response generation.
7103
- OpenAIResponseInputTool :
7213
+ OpenAIResponseTool :
7104
7214
oneOf :
7105
7215
- $ref : ' #/components/schemas/OpenAIResponseInputToolWebSearch'
7106
7216
- $ref : ' #/components/schemas/OpenAIResponseInputToolFileSearch'
7107
7217
- $ref : ' #/components/schemas/OpenAIResponseInputToolFunction'
7108
- - $ref : ' #/components/schemas/OpenAIResponseInputToolMCP '
7218
+ - $ref : ' #/components/schemas/OpenAIResponseToolMCP '
7109
7219
discriminator :
7110
7220
propertyName : type
7111
7221
mapping :
7112
7222
web_search : ' #/components/schemas/OpenAIResponseInputToolWebSearch'
7113
7223
file_search : ' #/components/schemas/OpenAIResponseInputToolFileSearch'
7114
7224
function : ' #/components/schemas/OpenAIResponseInputToolFunction'
7115
- mcp : ' #/components/schemas/OpenAIResponseInputToolMCP '
7116
- OpenAIResponseInputToolFileSearch :
7225
+ mcp : ' #/components/schemas/OpenAIResponseToolMCP '
7226
+ OpenAIResponseToolMCP :
7117
7227
type : object
7118
7228
properties :
7119
7229
type :
7120
7230
type : string
7121
- const : file_search
7122
- default : file_search
7123
- description : >-
7124
- Tool type identifier, always "file_search"
7125
- vector_store_ids :
7126
- type : array
7127
- items :
7128
- type : string
7129
- description : >-
7130
- List of vector store identifiers to search within
7131
- filters :
7132
- type : object
7133
- additionalProperties :
7134
- oneOf :
7135
- - type : ' null'
7136
- - type : boolean
7137
- - type : number
7138
- - type : string
7139
- - type : array
7140
- - type : object
7141
- description : >-
7142
- (Optional) Additional filters to apply to the search
7143
- max_num_results :
7144
- type : integer
7145
- default : 10
7146
- description : >-
7147
- (Optional) Maximum number of search results to return (1-50)
7148
- ranking_options :
7149
- type : object
7150
- properties :
7151
- ranker :
7152
- type : string
7153
- description : >-
7154
- (Optional) Name of the ranking algorithm to use
7155
- score_threshold :
7156
- type : number
7157
- default : 0.0
7231
+ const : mcp
7232
+ default : mcp
7233
+ description : Tool type identifier, always "mcp"
7234
+ server_label :
7235
+ type : string
7236
+ description : Label to identify this MCP server
7237
+ allowed_tools :
7238
+ oneOf :
7239
+ - type : array
7240
+ items :
7241
+ type : string
7242
+ - type : object
7243
+ properties :
7244
+ tool_names :
7245
+ type : array
7246
+ items :
7247
+ type : string
7248
+ description : >-
7249
+ (Optional) List of specific tool names that are allowed
7250
+ additionalProperties : false
7251
+ title : AllowedToolsFilter
7158
7252
description : >-
7159
- (Optional) Minimum relevance score threshold for results
7160
- additionalProperties : false
7253
+ Filter configuration for restricting which MCP tools can be used.
7161
7254
description : >-
7162
- (Optional) Options for ranking and scoring search results
7255
+ (Optional) Restriction on which tools can be used from this server
7163
7256
additionalProperties : false
7164
7257
required :
7165
7258
- type
7166
- - vector_store_ids
7167
- title : OpenAIResponseInputToolFileSearch
7259
+ - server_label
7260
+ title : OpenAIResponseToolMCP
7168
7261
description : >-
7169
- File search tool configuration for OpenAI response inputs .
7170
- OpenAIResponseInputToolFunction :
7262
+ Model Context Protocol (MCP) tool configuration for OpenAI response object .
7263
+ ResponseShieldSpec :
7171
7264
type : object
7172
7265
properties :
7173
7266
type :
7174
7267
type : string
7175
- const : function
7176
- default : function
7177
- description : Tool type identifier, always "function"
7178
- name :
7179
- type : string
7180
- description : Name of the function that can be called
7181
- description :
7182
- type : string
7183
- description : >-
7184
- (Optional) Description of what the function does
7185
- parameters :
7186
- type : object
7187
- additionalProperties :
7188
- oneOf :
7189
- - type : ' null'
7190
- - type : boolean
7191
- - type : number
7192
- - type : string
7193
- - type : array
7194
- - type : object
7195
- description : >-
7196
- (Optional) JSON schema defining the function's parameters
7197
- strict :
7198
- type : boolean
7199
- description : >-
7200
- (Optional) Whether to enforce strict parameter validation
7268
+ description : The type/identifier of the shield.
7201
7269
additionalProperties : false
7202
7270
required :
7203
7271
- type
7204
- - name
7205
- title : OpenAIResponseInputToolFunction
7272
+ title : ResponseShieldSpec
7206
7273
description : >-
7207
- Function tool configuration for OpenAI response inputs.
7274
+ Specification for a shield to apply during response generation.
7275
+ OpenAIResponseInputTool :
7276
+ oneOf :
7277
+ - $ref : ' #/components/schemas/OpenAIResponseInputToolWebSearch'
7278
+ - $ref : ' #/components/schemas/OpenAIResponseInputToolFileSearch'
7279
+ - $ref : ' #/components/schemas/OpenAIResponseInputToolFunction'
7280
+ - $ref : ' #/components/schemas/OpenAIResponseInputToolMCP'
7281
+ discriminator :
7282
+ propertyName : type
7283
+ mapping :
7284
+ web_search : ' #/components/schemas/OpenAIResponseInputToolWebSearch'
7285
+ file_search : ' #/components/schemas/OpenAIResponseInputToolFileSearch'
7286
+ function : ' #/components/schemas/OpenAIResponseInputToolFunction'
7287
+ mcp : ' #/components/schemas/OpenAIResponseInputToolMCP'
7208
7288
OpenAIResponseInputToolMCP :
7209
7289
type : object
7210
7290
properties :
@@ -7286,30 +7366,6 @@ components:
7286
7366
title : OpenAIResponseInputToolMCP
7287
7367
description : >-
7288
7368
Model Context Protocol (MCP) tool configuration for OpenAI response inputs.
7289
- OpenAIResponseInputToolWebSearch :
7290
- type : object
7291
- properties :
7292
- type :
7293
- oneOf :
7294
- - type : string
7295
- const : web_search
7296
- - type : string
7297
- const : web_search_preview
7298
- - type : string
7299
- const : web_search_preview_2025_03_11
7300
- default : web_search
7301
- description : Web search tool type variant to use
7302
- search_context_size :
7303
- type : string
7304
- default : medium
7305
- description : >-
7306
- (Optional) Size of search context, must be "low", "medium", or "high"
7307
- additionalProperties : false
7308
- required :
7309
- - type
7310
- title : OpenAIResponseInputToolWebSearch
7311
- description : >-
7312
- Web search tool configuration for OpenAI response inputs.
7313
7369
CreateOpenaiResponseRequest :
7314
7370
type : object
7315
7371
properties :
@@ -7410,6 +7466,12 @@ components:
7410
7466
type : number
7411
7467
description : >-
7412
7468
(Optional) Nucleus sampling parameter used for generation
7469
+ tools :
7470
+ type : array
7471
+ items :
7472
+ $ref : ' #/components/schemas/OpenAIResponseTool'
7473
+ description : >-
7474
+ (Optional) An array of tools the model may call while generating a response.
7413
7475
truncation :
7414
7476
type : string
7415
7477
description : >-
0 commit comments