@@ -265,11 +265,11 @@ func (r codeInterpreterToolCallCodeInterpreterJSON) RawJSON() string {
265265
266266// Text output from the Code Interpreter tool call as part of a run step.
267267type CodeInterpreterToolCallCodeInterpreterOutput struct {
268- // This field can have the runtime type of
269- // [CodeInterpreterToolCallCodeInterpreterOutputsImageImage].
270- Image interface {} `json:"image,required"`
271268 // Always `logs`.
272269 Type CodeInterpreterToolCallCodeInterpreterOutputsType `json:"type,required"`
270+ // This field can have the runtime type of
271+ // [CodeInterpreterToolCallCodeInterpreterOutputsImageImage].
272+ Image interface {} `json:"image"`
273273 // The text output from the Code Interpreter tool call.
274274 Logs string `json:"logs"`
275275 JSON codeInterpreterToolCallCodeInterpreterOutputJSON `json:"-"`
@@ -279,8 +279,8 @@ type CodeInterpreterToolCallCodeInterpreterOutput struct {
279279// codeInterpreterToolCallCodeInterpreterOutputJSON contains the JSON metadata for
280280// the struct [CodeInterpreterToolCallCodeInterpreterOutput]
281281type codeInterpreterToolCallCodeInterpreterOutputJSON struct {
282- Image apijson.Field
283282 Type apijson.Field
283+ Image apijson.Field
284284 Logs apijson.Field
285285 raw string
286286 ExtraFields map [string ]apijson.Field
@@ -557,12 +557,12 @@ func (r codeInterpreterToolCallDeltaCodeInterpreterJSON) RawJSON() string {
557557
558558// Text output from the Code Interpreter tool call as part of a run step.
559559type CodeInterpreterToolCallDeltaCodeInterpreterOutput struct {
560- // This field can have the runtime type of [CodeInterpreterOutputImageImage].
561- Image interface {} `json:"image,required"`
562560 // The index of the output in the outputs array.
563561 Index int64 `json:"index,required"`
564562 // Always `logs`.
565563 Type CodeInterpreterToolCallDeltaCodeInterpreterOutputsType `json:"type,required"`
564+ // This field can have the runtime type of [CodeInterpreterOutputImageImage].
565+ Image interface {} `json:"image"`
566566 // The text output from the Code Interpreter tool call.
567567 Logs string `json:"logs"`
568568 JSON codeInterpreterToolCallDeltaCodeInterpreterOutputJSON `json:"-"`
@@ -572,9 +572,9 @@ type CodeInterpreterToolCallDeltaCodeInterpreterOutput struct {
572572// codeInterpreterToolCallDeltaCodeInterpreterOutputJSON contains the JSON metadata
573573// for the struct [CodeInterpreterToolCallDeltaCodeInterpreterOutput]
574574type codeInterpreterToolCallDeltaCodeInterpreterOutputJSON struct {
575- Image apijson.Field
576575 Index apijson.Field
577576 Type apijson.Field
577+ Image apijson.Field
578578 Logs apijson.Field
579579 raw string
580580 ExtraFields map [string ]apijson.Field
@@ -1262,23 +1262,23 @@ func (r RunStepStatus) IsKnown() bool {
12621262
12631263// The details of the run step.
12641264type RunStepStepDetails struct {
1265+ // Always `message_creation`.
1266+ Type RunStepStepDetailsType `json:"type,required"`
12651267 // This field can have the runtime type of
12661268 // [MessageCreationStepDetailsMessageCreation].
1267- MessageCreation interface {} `json:"message_creation,required "`
1269+ MessageCreation interface {} `json:"message_creation"`
12681270 // 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
12741274}
12751275
12761276// runStepStepDetailsJSON contains the JSON metadata for the struct
12771277// [RunStepStepDetails]
12781278type runStepStepDetailsJSON struct {
1279+ Type apijson.Field
12791280 MessageCreation apijson.Field
12801281 ToolCalls apijson.Field
1281- Type apijson.Field
12821282 raw string
12831283 ExtraFields map [string ]apijson.Field
12841284}
@@ -1414,23 +1414,23 @@ func (r runStepDeltaJSON) RawJSON() string {
14141414
14151415// The details of the run step.
14161416type RunStepDeltaStepDetails struct {
1417+ // Always `message_creation`.
1418+ Type RunStepDeltaStepDetailsType `json:"type,required"`
14171419 // This field can have the runtime type of
14181420 // [RunStepDeltaMessageDeltaMessageCreation].
1419- MessageCreation interface {} `json:"message_creation,required "`
1421+ MessageCreation interface {} `json:"message_creation"`
14201422 // 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
14261426}
14271427
14281428// runStepDeltaStepDetailsJSON contains the JSON metadata for the struct
14291429// [RunStepDeltaStepDetails]
14301430type runStepDeltaStepDetailsJSON struct {
1431+ Type apijson.Field
14311432 MessageCreation apijson.Field
14321433 ToolCalls apijson.Field
1433- Type apijson.Field
14341434 raw string
14351435 ExtraFields map [string ]apijson.Field
14361436}
@@ -1624,27 +1624,27 @@ func (r RunStepInclude) IsKnown() bool {
16241624type ToolCall struct {
16251625 // The ID of the tool call.
16261626 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"`
16271630 // This field can have the runtime type of
16281631 // [CodeInterpreterToolCallCodeInterpreter].
1629- CodeInterpreter interface {} `json:"code_interpreter,required "`
1632+ CodeInterpreter interface {} `json:"code_interpreter"`
16301633 // This field can have the runtime type of [FileSearchToolCallFileSearch].
1631- FileSearch interface {} `json:"file_search,required "`
1634+ FileSearch interface {} `json:"file_search"`
16321635 // 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
16391639}
16401640
16411641// toolCallJSON contains the JSON metadata for the struct [ToolCall]
16421642type toolCallJSON struct {
16431643 ID apijson.Field
1644+ Type apijson.Field
16441645 CodeInterpreter apijson.Field
16451646 FileSearch apijson.Field
16461647 Function apijson.Field
1647- Type apijson.Field
16481648 raw string
16491649 ExtraFields map [string ]apijson.Field
16501650}
@@ -1721,32 +1721,32 @@ func (r ToolCallType) IsKnown() bool {
17211721
17221722// Details of the Code Interpreter tool call the run step was involved in.
17231723type 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"`
17311724 // The index of the tool call in the tool calls array.
17321725 Index int64 `json:"index,required"`
17331726 // The type of tool call. This is always going to be `code_interpreter` for this
17341727 // type of tool call.
17351728 Type ToolCallDeltaType `json:"type,required"`
17361729 // 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
17401740}
17411741
17421742// toolCallDeltaJSON contains the JSON metadata for the struct [ToolCallDelta]
17431743type toolCallDeltaJSON struct {
1744- CodeInterpreter apijson.Field
1745- FileSearch apijson.Field
1746- Function apijson.Field
17471744 Index apijson.Field
17481745 Type apijson.Field
17491746 ID apijson.Field
1747+ CodeInterpreter apijson.Field
1748+ FileSearch apijson.Field
1749+ Function apijson.Field
17501750 raw string
17511751 ExtraFields map [string ]apijson.Field
17521752}
0 commit comments