@@ -4381,6 +4381,8 @@ type ResponseInputContentUnion struct {
4381
4381
// This field is from variant [ResponseInputFile].
4382
4382
FileData string `json:"file_data"`
4383
4383
// This field is from variant [ResponseInputFile].
4384
+ FileURL string `json:"file_url"`
4385
+ // This field is from variant [ResponseInputFile].
4384
4386
Filename string `json:"filename"`
4385
4387
JSON struct {
4386
4388
Text respjson.Field
@@ -4389,6 +4391,7 @@ type ResponseInputContentUnion struct {
4389
4391
FileID respjson.Field
4390
4392
ImageURL respjson.Field
4391
4393
FileData respjson.Field
4394
+ FileURL respjson.Field
4392
4395
Filename respjson.Field
4393
4396
raw string
4394
4397
} `json:"-"`
@@ -4530,6 +4533,14 @@ func (u ResponseInputContentUnionParam) GetFileData() *string {
4530
4533
return nil
4531
4534
}
4532
4535
4536
+ // Returns a pointer to the underlying variant's property, if present.
4537
+ func (u ResponseInputContentUnionParam ) GetFileURL () * string {
4538
+ if vt := u .OfInputFile ; vt != nil && vt .FileURL .Valid () {
4539
+ return & vt .FileURL .Value
4540
+ }
4541
+ return nil
4542
+ }
4543
+
4533
4544
// Returns a pointer to the underlying variant's property, if present.
4534
4545
func (u ResponseInputContentUnionParam ) GetFilename () * string {
4535
4546
if vt := u .OfInputFile ; vt != nil && vt .Filename .Valid () {
@@ -4577,13 +4588,16 @@ type ResponseInputFile struct {
4577
4588
FileData string `json:"file_data"`
4578
4589
// The ID of the file to be sent to the model.
4579
4590
FileID string `json:"file_id,nullable"`
4591
+ // The URL of the file to be sent to the model.
4592
+ FileURL string `json:"file_url"`
4580
4593
// The name of the file to be sent to the model.
4581
4594
Filename string `json:"filename"`
4582
4595
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
4583
4596
JSON struct {
4584
4597
Type respjson.Field
4585
4598
FileData respjson.Field
4586
4599
FileID respjson.Field
4600
+ FileURL respjson.Field
4587
4601
Filename respjson.Field
4588
4602
ExtraFields map [string ]respjson.Field
4589
4603
raw string
@@ -4613,6 +4627,8 @@ type ResponseInputFileParam struct {
4613
4627
FileID param.Opt [string ] `json:"file_id,omitzero"`
4614
4628
// The content of the file to be sent to the model.
4615
4629
FileData param.Opt [string ] `json:"file_data,omitzero"`
4630
+ // The URL of the file to be sent to the model.
4631
+ FileURL param.Opt [string ] `json:"file_url,omitzero"`
4616
4632
// The name of the file to be sent to the model.
4617
4633
Filename param.Opt [string ] `json:"filename,omitzero"`
4618
4634
// The type of the input item. Always `input_file`.
@@ -7597,7 +7613,7 @@ type ResponseMcpCallArgumentsDeltaEvent struct {
7597
7613
OutputIndex int64 `json:"output_index,required"`
7598
7614
// The sequence number of this event.
7599
7615
SequenceNumber int64 `json:"sequence_number,required"`
7600
- // The type of the event. Always 'response.mcp_call.arguments_delta '.
7616
+ // The type of the event. Always 'response.mcp_call_arguments.delta '.
7601
7617
Type constant.ResponseMcpCallArgumentsDelta `json:"type,required"`
7602
7618
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
7603
7619
JSON struct {
@@ -7627,7 +7643,7 @@ type ResponseMcpCallArgumentsDoneEvent struct {
7627
7643
OutputIndex int64 `json:"output_index,required"`
7628
7644
// The sequence number of this event.
7629
7645
SequenceNumber int64 `json:"sequence_number,required"`
7630
- // The type of the event. Always 'response.mcp_call.arguments_done '.
7646
+ // The type of the event. Always 'response.mcp_call_arguments.done '.
7631
7647
Type constant.ResponseMcpCallArgumentsDone `json:"type,required"`
7632
7648
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
7633
7649
JSON struct {
@@ -9217,7 +9233,7 @@ type ResponseOutputTextAnnotationAddedEvent struct {
9217
9233
OutputIndex int64 `json:"output_index,required"`
9218
9234
// The sequence number of this event.
9219
9235
SequenceNumber int64 `json:"sequence_number,required"`
9220
- // The type of the event. Always 'response.output_text_annotation .added'.
9236
+ // The type of the event. Always 'response.output_text.annotation .added'.
9221
9237
Type constant.ResponseOutputTextAnnotationAdded `json:"type,required"`
9222
9238
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
9223
9239
JSON struct {
@@ -9296,6 +9312,8 @@ type ResponsePromptVariableUnion struct {
9296
9312
// This field is from variant [ResponseInputFile].
9297
9313
FileData string `json:"file_data"`
9298
9314
// This field is from variant [ResponseInputFile].
9315
+ FileURL string `json:"file_url"`
9316
+ // This field is from variant [ResponseInputFile].
9299
9317
Filename string `json:"filename"`
9300
9318
JSON struct {
9301
9319
OfString respjson.Field
@@ -9305,6 +9323,7 @@ type ResponsePromptVariableUnion struct {
9305
9323
FileID respjson.Field
9306
9324
ImageURL respjson.Field
9307
9325
FileData respjson.Field
9326
+ FileURL respjson.Field
9308
9327
Filename respjson.Field
9309
9328
raw string
9310
9329
} `json:"-"`
@@ -9424,6 +9443,14 @@ func (u ResponsePromptVariableUnionParam) GetFileData() *string {
9424
9443
return nil
9425
9444
}
9426
9445
9446
+ // Returns a pointer to the underlying variant's property, if present.
9447
+ func (u ResponsePromptVariableUnionParam ) GetFileURL () * string {
9448
+ if vt := u .OfInputFile ; vt != nil && vt .FileURL .Valid () {
9449
+ return & vt .FileURL .Value
9450
+ }
9451
+ return nil
9452
+ }
9453
+
9427
9454
// Returns a pointer to the underlying variant's property, if present.
9428
9455
func (u ResponsePromptVariableUnionParam ) GetFilename () * string {
9429
9456
if vt := u .OfInputFile ; vt != nil && vt .Filename .Valid () {
@@ -10057,11 +10084,11 @@ type ResponseStreamEventUnion struct {
10057
10084
// "response.image_generation_call.generating",
10058
10085
// "response.image_generation_call.in_progress",
10059
10086
// "response.image_generation_call.partial_image",
10060
- // "response.mcp_call.arguments_delta ", "response.mcp_call.arguments_done ",
10087
+ // "response.mcp_call_arguments.delta ", "response.mcp_call_arguments.done ",
10061
10088
// "response.mcp_call.completed", "response.mcp_call.failed",
10062
10089
// "response.mcp_call.in_progress", "response.mcp_list_tools.completed",
10063
10090
// "response.mcp_list_tools.failed", "response.mcp_list_tools.in_progress",
10064
- // "response.output_text_annotation .added", "response.queued",
10091
+ // "response.output_text.annotation .added", "response.queued",
10065
10092
// "response.reasoning.delta", "response.reasoning.done",
10066
10093
// "response.reasoning_summary.delta", "response.reasoning_summary.done".
10067
10094
Type string `json:"type"`
@@ -10321,9 +10348,9 @@ func (u ResponseStreamEventUnion) AsAny() anyResponseStreamEvent {
10321
10348
return u .AsResponseImageGenerationCallInProgress ()
10322
10349
case "response.image_generation_call.partial_image" :
10323
10350
return u .AsResponseImageGenerationCallPartialImage ()
10324
- case "response.mcp_call.arguments_delta " :
10351
+ case "response.mcp_call_arguments.delta " :
10325
10352
return u .AsResponseMcpCallArgumentsDelta ()
10326
- case "response.mcp_call.arguments_done " :
10353
+ case "response.mcp_call_arguments.done " :
10327
10354
return u .AsResponseMcpCallArgumentsDone ()
10328
10355
case "response.mcp_call.completed" :
10329
10356
return u .AsResponseMcpCallCompleted ()
@@ -10337,7 +10364,7 @@ func (u ResponseStreamEventUnion) AsAny() anyResponseStreamEvent {
10337
10364
return u .AsResponseMcpListToolsFailed ()
10338
10365
case "response.mcp_list_tools.in_progress" :
10339
10366
return u .AsResponseMcpListToolsInProgress ()
10340
- case "response.output_text_annotation .added" :
10367
+ case "response.output_text.annotation .added" :
10341
10368
return u .AsResponseOutputTextAnnotationAdded ()
10342
10369
case "response.queued" :
10343
10370
return u .AsResponseQueued ()
@@ -11043,6 +11070,8 @@ type ToolUnion struct {
11043
11070
Headers map [string ]string `json:"headers"`
11044
11071
// This field is from variant [ToolMcp].
11045
11072
RequireApproval ToolMcpRequireApprovalUnion `json:"require_approval"`
11073
+ // This field is from variant [ToolMcp].
11074
+ ServerDescription string `json:"server_description"`
11046
11075
// This field is from variant [ToolCodeInterpreter].
11047
11076
Container ToolCodeInterpreterContainerUnion `json:"container"`
11048
11077
// This field is from variant [ToolImageGeneration].
@@ -11083,6 +11112,7 @@ type ToolUnion struct {
11083
11112
AllowedTools respjson.Field
11084
11113
Headers respjson.Field
11085
11114
RequireApproval respjson.Field
11115
+ ServerDescription respjson.Field
11086
11116
Container respjson.Field
11087
11117
Background respjson.Field
11088
11118
InputImageMask respjson.Field
@@ -11170,16 +11200,19 @@ type ToolMcp struct {
11170
11200
Headers map [string ]string `json:"headers,nullable"`
11171
11201
// Specify which of the MCP server's tools require approval.
11172
11202
RequireApproval ToolMcpRequireApprovalUnion `json:"require_approval,nullable"`
11203
+ // Optional description of the MCP server, used to provide more context.
11204
+ ServerDescription string `json:"server_description"`
11173
11205
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
11174
11206
JSON struct {
11175
- ServerLabel respjson.Field
11176
- ServerURL respjson.Field
11177
- Type respjson.Field
11178
- AllowedTools respjson.Field
11179
- Headers respjson.Field
11180
- RequireApproval respjson.Field
11181
- ExtraFields map [string ]respjson.Field
11182
- raw string
11207
+ ServerLabel respjson.Field
11208
+ ServerURL respjson.Field
11209
+ Type respjson.Field
11210
+ AllowedTools respjson.Field
11211
+ Headers respjson.Field
11212
+ RequireApproval respjson.Field
11213
+ ServerDescription respjson.Field
11214
+ ExtraFields map [string ]respjson.Field
11215
+ raw string
11183
11216
} `json:"-"`
11184
11217
}
11185
11218
@@ -11778,6 +11811,14 @@ func (u ToolUnionParam) GetRequireApproval() *ToolMcpRequireApprovalUnionParam {
11778
11811
return nil
11779
11812
}
11780
11813
11814
+ // Returns a pointer to the underlying variant's property, if present.
11815
+ func (u ToolUnionParam ) GetServerDescription () * string {
11816
+ if vt := u .OfMcp ; vt != nil && vt .ServerDescription .Valid () {
11817
+ return & vt .ServerDescription .Value
11818
+ }
11819
+ return nil
11820
+ }
11821
+
11781
11822
// Returns a pointer to the underlying variant's property, if present.
11782
11823
func (u ToolUnionParam ) GetContainer () * ToolCodeInterpreterContainerUnionParam {
11783
11824
if vt := u .OfCodeInterpreter ; vt != nil {
@@ -11905,6 +11946,8 @@ type ToolMcpParam struct {
11905
11946
ServerLabel string `json:"server_label,required"`
11906
11947
// The URL for the MCP server.
11907
11948
ServerURL string `json:"server_url,required"`
11949
+ // Optional description of the MCP server, used to provide more context.
11950
+ ServerDescription param.Opt [string ] `json:"server_description,omitzero"`
11908
11951
// List of allowed tool names or a filter object.
11909
11952
AllowedTools ToolMcpAllowedToolsUnionParam `json:"allowed_tools,omitzero"`
11910
11953
// Optional HTTP headers to send to the MCP server. Use for authentication or other
0 commit comments