@@ -265,11 +265,11 @@ func (r codeInterpreterToolCallCodeInterpreterJSON) RawJSON() string {
265
265
266
266
// Text output from the Code Interpreter tool call as part of a run step.
267
267
type CodeInterpreterToolCallCodeInterpreterOutput struct {
268
- // This field can have the runtime type of
269
- // [CodeInterpreterToolCallCodeInterpreterOutputsImageImage].
270
- Image interface {} `json:"image,required"`
271
268
// Always `logs`.
272
269
Type CodeInterpreterToolCallCodeInterpreterOutputsType `json:"type,required"`
270
+ // This field can have the runtime type of
271
+ // [CodeInterpreterToolCallCodeInterpreterOutputsImageImage].
272
+ Image interface {} `json:"image"`
273
273
// The text output from the Code Interpreter tool call.
274
274
Logs string `json:"logs"`
275
275
JSON codeInterpreterToolCallCodeInterpreterOutputJSON `json:"-"`
@@ -279,8 +279,8 @@ type CodeInterpreterToolCallCodeInterpreterOutput struct {
279
279
// codeInterpreterToolCallCodeInterpreterOutputJSON contains the JSON metadata for
280
280
// the struct [CodeInterpreterToolCallCodeInterpreterOutput]
281
281
type codeInterpreterToolCallCodeInterpreterOutputJSON struct {
282
- Image apijson.Field
283
282
Type apijson.Field
283
+ Image apijson.Field
284
284
Logs apijson.Field
285
285
raw string
286
286
ExtraFields map [string ]apijson.Field
@@ -557,12 +557,12 @@ func (r codeInterpreterToolCallDeltaCodeInterpreterJSON) RawJSON() string {
557
557
558
558
// Text output from the Code Interpreter tool call as part of a run step.
559
559
type CodeInterpreterToolCallDeltaCodeInterpreterOutput struct {
560
- // This field can have the runtime type of [CodeInterpreterOutputImageImage].
561
- Image interface {} `json:"image,required"`
562
560
// The index of the output in the outputs array.
563
561
Index int64 `json:"index,required"`
564
562
// Always `logs`.
565
563
Type CodeInterpreterToolCallDeltaCodeInterpreterOutputsType `json:"type,required"`
564
+ // This field can have the runtime type of [CodeInterpreterOutputImageImage].
565
+ Image interface {} `json:"image"`
566
566
// The text output from the Code Interpreter tool call.
567
567
Logs string `json:"logs"`
568
568
JSON codeInterpreterToolCallDeltaCodeInterpreterOutputJSON `json:"-"`
@@ -572,9 +572,9 @@ type CodeInterpreterToolCallDeltaCodeInterpreterOutput struct {
572
572
// codeInterpreterToolCallDeltaCodeInterpreterOutputJSON contains the JSON metadata
573
573
// for the struct [CodeInterpreterToolCallDeltaCodeInterpreterOutput]
574
574
type codeInterpreterToolCallDeltaCodeInterpreterOutputJSON struct {
575
- Image apijson.Field
576
575
Index apijson.Field
577
576
Type apijson.Field
577
+ Image apijson.Field
578
578
Logs apijson.Field
579
579
raw string
580
580
ExtraFields map [string ]apijson.Field
@@ -1262,23 +1262,23 @@ func (r RunStepStatus) IsKnown() bool {
1262
1262
1263
1263
// The details of the run step.
1264
1264
type RunStepStepDetails struct {
1265
+ // Always `message_creation`.
1266
+ Type RunStepStepDetailsType `json:"type,required"`
1265
1267
// This field can have the runtime type of
1266
1268
// [MessageCreationStepDetailsMessageCreation].
1267
- MessageCreation interface {} `json:"message_creation,required "`
1269
+ MessageCreation interface {} `json:"message_creation"`
1268
1270
// This field can have the runtime type of [[]ToolCall].
1269
- ToolCalls interface {} `json:"tool_calls,required"`
1270
- // Always `message_creation`.
1271
- Type RunStepStepDetailsType `json:"type,required"`
1272
- JSON runStepStepDetailsJSON `json:"-"`
1273
- union RunStepStepDetailsUnion
1271
+ ToolCalls interface {} `json:"tool_calls"`
1272
+ JSON runStepStepDetailsJSON `json:"-"`
1273
+ union RunStepStepDetailsUnion
1274
1274
}
1275
1275
1276
1276
// runStepStepDetailsJSON contains the JSON metadata for the struct
1277
1277
// [RunStepStepDetails]
1278
1278
type runStepStepDetailsJSON struct {
1279
+ Type apijson.Field
1279
1280
MessageCreation apijson.Field
1280
1281
ToolCalls apijson.Field
1281
- Type apijson.Field
1282
1282
raw string
1283
1283
ExtraFields map [string ]apijson.Field
1284
1284
}
@@ -1414,23 +1414,23 @@ func (r runStepDeltaJSON) RawJSON() string {
1414
1414
1415
1415
// The details of the run step.
1416
1416
type RunStepDeltaStepDetails struct {
1417
+ // Always `message_creation`.
1418
+ Type RunStepDeltaStepDetailsType `json:"type,required"`
1417
1419
// This field can have the runtime type of
1418
1420
// [RunStepDeltaMessageDeltaMessageCreation].
1419
- MessageCreation interface {} `json:"message_creation,required "`
1421
+ MessageCreation interface {} `json:"message_creation"`
1420
1422
// This field can have the runtime type of [[]ToolCallDelta].
1421
- ToolCalls interface {} `json:"tool_calls,required"`
1422
- // Always `message_creation`.
1423
- Type RunStepDeltaStepDetailsType `json:"type,required"`
1424
- JSON runStepDeltaStepDetailsJSON `json:"-"`
1425
- union RunStepDeltaStepDetailsUnion
1423
+ ToolCalls interface {} `json:"tool_calls"`
1424
+ JSON runStepDeltaStepDetailsJSON `json:"-"`
1425
+ union RunStepDeltaStepDetailsUnion
1426
1426
}
1427
1427
1428
1428
// runStepDeltaStepDetailsJSON contains the JSON metadata for the struct
1429
1429
// [RunStepDeltaStepDetails]
1430
1430
type runStepDeltaStepDetailsJSON struct {
1431
+ Type apijson.Field
1431
1432
MessageCreation apijson.Field
1432
1433
ToolCalls apijson.Field
1433
- Type apijson.Field
1434
1434
raw string
1435
1435
ExtraFields map [string ]apijson.Field
1436
1436
}
@@ -1624,27 +1624,27 @@ func (r RunStepInclude) IsKnown() bool {
1624
1624
type ToolCall struct {
1625
1625
// The ID of the tool call.
1626
1626
ID string `json:"id,required"`
1627
+ // The type of tool call. This is always going to be `code_interpreter` for this
1628
+ // type of tool call.
1629
+ Type ToolCallType `json:"type,required"`
1627
1630
// This field can have the runtime type of
1628
1631
// [CodeInterpreterToolCallCodeInterpreter].
1629
- CodeInterpreter interface {} `json:"code_interpreter,required "`
1632
+ CodeInterpreter interface {} `json:"code_interpreter"`
1630
1633
// This field can have the runtime type of [FileSearchToolCallFileSearch].
1631
- FileSearch interface {} `json:"file_search,required "`
1634
+ FileSearch interface {} `json:"file_search"`
1632
1635
// This field can have the runtime type of [FunctionToolCallFunction].
1633
- Function interface {} `json:"function,required"`
1634
- // The type of tool call. This is always going to be `code_interpreter` for this
1635
- // type of tool call.
1636
- Type ToolCallType `json:"type,required"`
1637
- JSON toolCallJSON `json:"-"`
1638
- union ToolCallUnion
1636
+ Function interface {} `json:"function"`
1637
+ JSON toolCallJSON `json:"-"`
1638
+ union ToolCallUnion
1639
1639
}
1640
1640
1641
1641
// toolCallJSON contains the JSON metadata for the struct [ToolCall]
1642
1642
type toolCallJSON struct {
1643
1643
ID apijson.Field
1644
+ Type apijson.Field
1644
1645
CodeInterpreter apijson.Field
1645
1646
FileSearch apijson.Field
1646
1647
Function apijson.Field
1647
- Type apijson.Field
1648
1648
raw string
1649
1649
ExtraFields map [string ]apijson.Field
1650
1650
}
@@ -1721,32 +1721,32 @@ func (r ToolCallType) IsKnown() bool {
1721
1721
1722
1722
// Details of the Code Interpreter tool call the run step was involved in.
1723
1723
type ToolCallDelta struct {
1724
- // This field can have the runtime type of
1725
- // [CodeInterpreterToolCallDeltaCodeInterpreter].
1726
- CodeInterpreter interface {} `json:"code_interpreter,required"`
1727
- // This field can have the runtime type of [interface{}].
1728
- FileSearch interface {} `json:"file_search,required"`
1729
- // This field can have the runtime type of [FunctionToolCallDeltaFunction].
1730
- Function interface {} `json:"function,required"`
1731
1724
// The index of the tool call in the tool calls array.
1732
1725
Index int64 `json:"index,required"`
1733
1726
// The type of tool call. This is always going to be `code_interpreter` for this
1734
1727
// type of tool call.
1735
1728
Type ToolCallDeltaType `json:"type,required"`
1736
1729
// The ID of the tool call.
1737
- ID string `json:"id"`
1738
- JSON toolCallDeltaJSON `json:"-"`
1739
- union ToolCallDeltaUnion
1730
+ ID string `json:"id"`
1731
+ // This field can have the runtime type of
1732
+ // [CodeInterpreterToolCallDeltaCodeInterpreter].
1733
+ CodeInterpreter interface {} `json:"code_interpreter"`
1734
+ // This field can have the runtime type of [interface{}].
1735
+ FileSearch interface {} `json:"file_search"`
1736
+ // This field can have the runtime type of [FunctionToolCallDeltaFunction].
1737
+ Function interface {} `json:"function"`
1738
+ JSON toolCallDeltaJSON `json:"-"`
1739
+ union ToolCallDeltaUnion
1740
1740
}
1741
1741
1742
1742
// toolCallDeltaJSON contains the JSON metadata for the struct [ToolCallDelta]
1743
1743
type toolCallDeltaJSON struct {
1744
- CodeInterpreter apijson.Field
1745
- FileSearch apijson.Field
1746
- Function apijson.Field
1747
1744
Index apijson.Field
1748
1745
Type apijson.Field
1749
1746
ID apijson.Field
1747
+ CodeInterpreter apijson.Field
1748
+ FileSearch apijson.Field
1749
+ Function apijson.Field
1750
1750
raw string
1751
1751
ExtraFields map [string ]apijson.Field
1752
1752
}
0 commit comments