From 6a505a8f01e339207d5714434547df509524d19d Mon Sep 17 00:00:00 2001 From: markstuart-oai Date: Mon, 21 Sep 2026 15:56:19 +0000 Subject: [PATCH] Revert "fix(api)!: declare required local shell output call IDs (#1044)" This reverts commit 8d1aa390a325d69b68dd4db060f5dfefb1385e81. --- .castiron.stats.yml | 14 +++--- api_reference/openapi.transformed.yml | 16 +++---- .../beta/responses/BetaResponseInputItem.kt | 47 ++----------------- .../models/beta/responses/BetaResponseItem.kt | 47 ++----------------- .../beta/responses/BetaResponseOutputItem.kt | 47 ++----------------- .../conversations/items/ConversationItem.kt | 47 ++----------------- .../models/responses/ResponseInputItem.kt | 47 ++----------------- .../openai/models/responses/ResponseItem.kt | 47 ++----------------- .../models/responses/ResponseOutputItem.kt | 47 ++----------------- .../responses/BetaResponseInputItemTest.kt | 2 - .../beta/responses/BetaResponseItemTest.kt | 2 - .../responses/BetaResponseOutputItemTest.kt | 2 - .../items/ConversationItemTest.kt | 2 - .../models/responses/ResponseInputItemTest.kt | 2 - .../models/responses/ResponseItemTest.kt | 2 - .../responses/ResponseOutputItemTest.kt | 2 - .../StructuredResponseOutputItemTest.kt | 1 - 17 files changed, 48 insertions(+), 326 deletions(-) diff --git a/.castiron.stats.yml b/.castiron.stats.yml index 39cf47258..d61990923 100644 --- a/.castiron.stats.yml +++ b/.castiron.stats.yml @@ -1,8 +1,8 @@ schema_version: 1 -generation_id: d66d942a-5c41-42fc-ae6d-0be56422f8a9 -openapi_spec_hash: 1ed71fc8e894116bb22f5ef57b7042c9 -openapi_transformed_spec_hash: d25d1c0ad7d91b71798878c81622fc74 -config_hash: 4b829cf550bc8e7f104da50d664100c4 -codegen_sha: 2921b00a04cd701ee27d6e98f7b2952ce448bd83 -codegen_hash: 15c14e7c6f2576c80bb64276f8289d1c83d87245ff6aac7dc14ee3f808898fcd -public_codegen_sha: d07a8dcab0b433be6b296a64a04de6118620193a +generation_id: bf3df9de-61e0-4ac3-aba8-bc72a0e6ad7c +openapi_spec_hash: c7a2088dc0fb8d92f9a934ba4dca2d80 +openapi_transformed_spec_hash: 7281a983306f72fc39720d7057f11ef7 +config_hash: 60435bd668a5724c530fe7e9d6869e9a +codegen_sha: 04ef2db20d0b32b277242a48487634d885e71cfd +codegen_hash: 6d6c043d25782a4d8090ccdfcc621f32341ba1116513d40b535b89085b9704bd +public_codegen_sha: 5ccf425b618de67fb7c595d8bc1aabaf3d699888 diff --git a/api_reference/openapi.transformed.yml b/api_reference/openapi.transformed.yml index 54778f92b..5c02305f9 100644 --- a/api_reference/openapi.transformed.yml +++ b/api_reference/openapi.transformed.yml @@ -44672,7 +44672,7 @@ components: id: type: string description: | - The unique ID of the local shell tool call output. + The unique ID of the local shell tool call generated by the model. output: type: string description: | @@ -44687,10 +44687,6 @@ components: description: | The status of the item. One of `in_progress`, `completed`, or `incomplete`. - type: 'null' - call_id: - type: string - description: | - The unique ID of the local shell tool call generated by the model. required: - id - type @@ -44789,6 +44785,7 @@ components: - type: 'null' required: - type + - request_id - approve - approval_request_id MCPApprovalResponseResource: @@ -44825,6 +44822,7 @@ components: required: - type - id + - request_id - approve - approval_request_id MCPListTools: @@ -86287,6 +86285,7 @@ components: - type: 'null' required: - type + - request_id - approve - approval_request_id BetaMCPApprovalRequest: @@ -86798,7 +86797,7 @@ components: id: type: string description: | - The unique ID of the local shell tool call output. + The unique ID of the local shell tool call generated by the model. output: type: string description: | @@ -86813,10 +86812,6 @@ components: description: | The status of the item. One of `in_progress`, `completed`, or `incomplete`. - type: 'null' - call_id: - type: string - description: | - The unique ID of the local shell tool call generated by the model. required: - id - type @@ -89336,6 +89331,7 @@ components: required: - type - id + - request_id - approve - approval_request_id BetaApplyPatchToolCallOutput: diff --git a/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseInputItem.kt b/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseInputItem.kt index 7188f1dce..7e280d183 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseInputItem.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseInputItem.kt @@ -13804,7 +13804,6 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val id: JsonField, - private val callId: JsonField, private val output: JsonField, private val type: JsonValue, private val agent: JsonField, @@ -13815,20 +13814,11 @@ private constructor( @JsonCreator private constructor( @JsonProperty("id") @ExcludeMissing id: JsonField = JsonMissing.of(), - @JsonProperty("call_id") @ExcludeMissing callId: JsonField = JsonMissing.of(), @JsonProperty("output") @ExcludeMissing output: JsonField = JsonMissing.of(), @JsonProperty("type") @ExcludeMissing type: JsonValue = JsonMissing.of(), @JsonProperty("agent") @ExcludeMissing agent: JsonField = JsonMissing.of(), @JsonProperty("status") @ExcludeMissing status: JsonField = JsonMissing.of(), - ) : this(id, callId, output, type, agent, status, mutableMapOf()) - - /** - * The unique ID of the local shell tool call output. - * - * @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is - * unexpectedly missing or null (e.g. if the server responded with an unexpected value). - */ - fun id(): String = id.getRequired("id") + ) : this(id, output, type, agent, status, mutableMapOf()) /** * The unique ID of the local shell tool call generated by the model. @@ -13836,7 +13826,7 @@ private constructor( * @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is * unexpectedly missing or null (e.g. if the server responded with an unexpected value). */ - fun callId(): String = callId.getRequired("call_id") + fun id(): String = id.getRequired("id") /** * A JSON string of the output of the local shell tool call. @@ -13882,13 +13872,6 @@ private constructor( */ @JsonProperty("id") @ExcludeMissing fun _id(): JsonField = id - /** - * Returns the raw JSON value of [callId]. - * - * Unlike [callId], this method doesn't throw if the JSON field has an unexpected type. - */ - @JsonProperty("call_id") @ExcludeMissing fun _callId(): JsonField = callId - /** * Returns the raw JSON value of [output]. * @@ -13930,7 +13913,6 @@ private constructor( * The following fields are required: * ```java * .id() - * .callId() * .output() * ``` */ @@ -13941,7 +13923,6 @@ private constructor( class Builder internal constructor() { private var id: JsonField? = null - private var callId: JsonField? = null private var output: JsonField? = null private var type: JsonValue = JsonValue.from("local_shell_call_output") private var agent: JsonField = JsonMissing.of() @@ -13951,7 +13932,6 @@ private constructor( @JvmSynthetic internal fun from(localShellCallOutput: LocalShellCallOutput) = apply { id = localShellCallOutput.id - callId = localShellCallOutput.callId output = localShellCallOutput.output type = localShellCallOutput.type agent = localShellCallOutput.agent @@ -13959,7 +13939,7 @@ private constructor( additionalProperties = localShellCallOutput.additionalProperties.toMutableMap() } - /** The unique ID of the local shell tool call output. */ + /** The unique ID of the local shell tool call generated by the model. */ fun id(id: String) = id(JsonField.of(id)) /** @@ -13971,18 +13951,6 @@ private constructor( */ fun id(id: JsonField) = apply { this.id = id } - /** The unique ID of the local shell tool call generated by the model. */ - fun callId(callId: String) = callId(JsonField.of(callId)) - - /** - * Sets [Builder.callId] to an arbitrary JSON value. - * - * You should usually call [Builder.callId] with a well-typed [String] value instead. - * This method is primarily for setting the field to an undocumented or not yet - * supported value. - */ - fun callId(callId: JsonField) = apply { this.callId = callId } - /** A JSON string of the output of the local shell tool call. */ fun output(output: String) = output(JsonField.of(output)) @@ -14066,7 +14034,6 @@ private constructor( * The following fields are required: * ```java * .id() - * .callId() * .output() * ``` * @@ -14075,7 +14042,6 @@ private constructor( fun build(): LocalShellCallOutput = LocalShellCallOutput( checkRequired("id", id), - checkRequired("callId", callId), checkRequired("output", output), type, agent, @@ -14101,7 +14067,6 @@ private constructor( } id() - callId() output() _type().let { if (it != JsonValue.from("local_shell_call_output")) { @@ -14130,7 +14095,6 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (id.asKnown().isPresent) 1 else 0) + - (if (callId.asKnown().isPresent) 1 else 0) + (if (output.asKnown().isPresent) 1 else 0) + type.let { if (it == JsonValue.from("local_shell_call_output")) 1 else 0 } + (agent.asKnown().getOrNull()?.validity() ?: 0) + @@ -14469,7 +14433,6 @@ private constructor( return other is LocalShellCallOutput && id == other.id && - callId == other.callId && output == other.output && type == other.type && agent == other.agent && @@ -14478,13 +14441,13 @@ private constructor( } private val hashCode: Int by lazy { - Objects.hash(id, callId, output, type, agent, status, additionalProperties) + Objects.hash(id, output, type, agent, status, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "LocalShellCallOutput{id=$id, callId=$callId, output=$output, type=$type, agent=$agent, status=$status, additionalProperties=$additionalProperties}" + "LocalShellCallOutput{id=$id, output=$output, type=$type, agent=$agent, status=$status, additionalProperties=$additionalProperties}" } /** A tool representing a request to execute one or more shell commands. */ diff --git a/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseItem.kt b/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseItem.kt index cf7b08f0a..fb5681838 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseItem.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseItem.kt @@ -10651,7 +10651,6 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val id: JsonField, - private val callId: JsonField, private val output: JsonField, private val type: JsonValue, private val agent: JsonField, @@ -10662,20 +10661,11 @@ private constructor( @JsonCreator private constructor( @JsonProperty("id") @ExcludeMissing id: JsonField = JsonMissing.of(), - @JsonProperty("call_id") @ExcludeMissing callId: JsonField = JsonMissing.of(), @JsonProperty("output") @ExcludeMissing output: JsonField = JsonMissing.of(), @JsonProperty("type") @ExcludeMissing type: JsonValue = JsonMissing.of(), @JsonProperty("agent") @ExcludeMissing agent: JsonField = JsonMissing.of(), @JsonProperty("status") @ExcludeMissing status: JsonField = JsonMissing.of(), - ) : this(id, callId, output, type, agent, status, mutableMapOf()) - - /** - * The unique ID of the local shell tool call output. - * - * @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is - * unexpectedly missing or null (e.g. if the server responded with an unexpected value). - */ - fun id(): String = id.getRequired("id") + ) : this(id, output, type, agent, status, mutableMapOf()) /** * The unique ID of the local shell tool call generated by the model. @@ -10683,7 +10673,7 @@ private constructor( * @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is * unexpectedly missing or null (e.g. if the server responded with an unexpected value). */ - fun callId(): String = callId.getRequired("call_id") + fun id(): String = id.getRequired("id") /** * A JSON string of the output of the local shell tool call. @@ -10729,13 +10719,6 @@ private constructor( */ @JsonProperty("id") @ExcludeMissing fun _id(): JsonField = id - /** - * Returns the raw JSON value of [callId]. - * - * Unlike [callId], this method doesn't throw if the JSON field has an unexpected type. - */ - @JsonProperty("call_id") @ExcludeMissing fun _callId(): JsonField = callId - /** * Returns the raw JSON value of [output]. * @@ -10777,7 +10760,6 @@ private constructor( * The following fields are required: * ```java * .id() - * .callId() * .output() * ``` */ @@ -10788,7 +10770,6 @@ private constructor( class Builder internal constructor() { private var id: JsonField? = null - private var callId: JsonField? = null private var output: JsonField? = null private var type: JsonValue = JsonValue.from("local_shell_call_output") private var agent: JsonField = JsonMissing.of() @@ -10798,7 +10779,6 @@ private constructor( @JvmSynthetic internal fun from(localShellCallOutput: LocalShellCallOutput) = apply { id = localShellCallOutput.id - callId = localShellCallOutput.callId output = localShellCallOutput.output type = localShellCallOutput.type agent = localShellCallOutput.agent @@ -10806,7 +10786,7 @@ private constructor( additionalProperties = localShellCallOutput.additionalProperties.toMutableMap() } - /** The unique ID of the local shell tool call output. */ + /** The unique ID of the local shell tool call generated by the model. */ fun id(id: String) = id(JsonField.of(id)) /** @@ -10818,18 +10798,6 @@ private constructor( */ fun id(id: JsonField) = apply { this.id = id } - /** The unique ID of the local shell tool call generated by the model. */ - fun callId(callId: String) = callId(JsonField.of(callId)) - - /** - * Sets [Builder.callId] to an arbitrary JSON value. - * - * You should usually call [Builder.callId] with a well-typed [String] value instead. - * This method is primarily for setting the field to an undocumented or not yet - * supported value. - */ - fun callId(callId: JsonField) = apply { this.callId = callId } - /** A JSON string of the output of the local shell tool call. */ fun output(output: String) = output(JsonField.of(output)) @@ -10913,7 +10881,6 @@ private constructor( * The following fields are required: * ```java * .id() - * .callId() * .output() * ``` * @@ -10922,7 +10889,6 @@ private constructor( fun build(): LocalShellCallOutput = LocalShellCallOutput( checkRequired("id", id), - checkRequired("callId", callId), checkRequired("output", output), type, agent, @@ -10948,7 +10914,6 @@ private constructor( } id() - callId() output() _type().let { if (it != JsonValue.from("local_shell_call_output")) { @@ -10977,7 +10942,6 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (id.asKnown().isPresent) 1 else 0) + - (if (callId.asKnown().isPresent) 1 else 0) + (if (output.asKnown().isPresent) 1 else 0) + type.let { if (it == JsonValue.from("local_shell_call_output")) 1 else 0 } + (agent.asKnown().getOrNull()?.validity() ?: 0) + @@ -11316,7 +11280,6 @@ private constructor( return other is LocalShellCallOutput && id == other.id && - callId == other.callId && output == other.output && type == other.type && agent == other.agent && @@ -11325,13 +11288,13 @@ private constructor( } private val hashCode: Int by lazy { - Objects.hash(id, callId, output, type, agent, status, additionalProperties) + Objects.hash(id, output, type, agent, status, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "LocalShellCallOutput{id=$id, callId=$callId, output=$output, type=$type, agent=$agent, status=$status, additionalProperties=$additionalProperties}" + "LocalShellCallOutput{id=$id, output=$output, type=$type, agent=$agent, status=$status, additionalProperties=$additionalProperties}" } /** A list of tools available on an MCP server. */ diff --git a/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseOutputItem.kt b/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseOutputItem.kt index b24d8cdb1..4f8444f8f 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseOutputItem.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseOutputItem.kt @@ -10524,7 +10524,6 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val id: JsonField, - private val callId: JsonField, private val output: JsonField, private val type: JsonValue, private val agent: JsonField, @@ -10535,20 +10534,11 @@ private constructor( @JsonCreator private constructor( @JsonProperty("id") @ExcludeMissing id: JsonField = JsonMissing.of(), - @JsonProperty("call_id") @ExcludeMissing callId: JsonField = JsonMissing.of(), @JsonProperty("output") @ExcludeMissing output: JsonField = JsonMissing.of(), @JsonProperty("type") @ExcludeMissing type: JsonValue = JsonMissing.of(), @JsonProperty("agent") @ExcludeMissing agent: JsonField = JsonMissing.of(), @JsonProperty("status") @ExcludeMissing status: JsonField = JsonMissing.of(), - ) : this(id, callId, output, type, agent, status, mutableMapOf()) - - /** - * The unique ID of the local shell tool call output. - * - * @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is - * unexpectedly missing or null (e.g. if the server responded with an unexpected value). - */ - fun id(): String = id.getRequired("id") + ) : this(id, output, type, agent, status, mutableMapOf()) /** * The unique ID of the local shell tool call generated by the model. @@ -10556,7 +10546,7 @@ private constructor( * @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is * unexpectedly missing or null (e.g. if the server responded with an unexpected value). */ - fun callId(): String = callId.getRequired("call_id") + fun id(): String = id.getRequired("id") /** * A JSON string of the output of the local shell tool call. @@ -10602,13 +10592,6 @@ private constructor( */ @JsonProperty("id") @ExcludeMissing fun _id(): JsonField = id - /** - * Returns the raw JSON value of [callId]. - * - * Unlike [callId], this method doesn't throw if the JSON field has an unexpected type. - */ - @JsonProperty("call_id") @ExcludeMissing fun _callId(): JsonField = callId - /** * Returns the raw JSON value of [output]. * @@ -10650,7 +10633,6 @@ private constructor( * The following fields are required: * ```java * .id() - * .callId() * .output() * ``` */ @@ -10661,7 +10643,6 @@ private constructor( class Builder internal constructor() { private var id: JsonField? = null - private var callId: JsonField? = null private var output: JsonField? = null private var type: JsonValue = JsonValue.from("local_shell_call_output") private var agent: JsonField = JsonMissing.of() @@ -10671,7 +10652,6 @@ private constructor( @JvmSynthetic internal fun from(localShellCallOutput: LocalShellCallOutput) = apply { id = localShellCallOutput.id - callId = localShellCallOutput.callId output = localShellCallOutput.output type = localShellCallOutput.type agent = localShellCallOutput.agent @@ -10679,7 +10659,7 @@ private constructor( additionalProperties = localShellCallOutput.additionalProperties.toMutableMap() } - /** The unique ID of the local shell tool call output. */ + /** The unique ID of the local shell tool call generated by the model. */ fun id(id: String) = id(JsonField.of(id)) /** @@ -10691,18 +10671,6 @@ private constructor( */ fun id(id: JsonField) = apply { this.id = id } - /** The unique ID of the local shell tool call generated by the model. */ - fun callId(callId: String) = callId(JsonField.of(callId)) - - /** - * Sets [Builder.callId] to an arbitrary JSON value. - * - * You should usually call [Builder.callId] with a well-typed [String] value instead. - * This method is primarily for setting the field to an undocumented or not yet - * supported value. - */ - fun callId(callId: JsonField) = apply { this.callId = callId } - /** A JSON string of the output of the local shell tool call. */ fun output(output: String) = output(JsonField.of(output)) @@ -10786,7 +10754,6 @@ private constructor( * The following fields are required: * ```java * .id() - * .callId() * .output() * ``` * @@ -10795,7 +10762,6 @@ private constructor( fun build(): LocalShellCallOutput = LocalShellCallOutput( checkRequired("id", id), - checkRequired("callId", callId), checkRequired("output", output), type, agent, @@ -10821,7 +10787,6 @@ private constructor( } id() - callId() output() _type().let { if (it != JsonValue.from("local_shell_call_output")) { @@ -10850,7 +10815,6 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (id.asKnown().isPresent) 1 else 0) + - (if (callId.asKnown().isPresent) 1 else 0) + (if (output.asKnown().isPresent) 1 else 0) + type.let { if (it == JsonValue.from("local_shell_call_output")) 1 else 0 } + (agent.asKnown().getOrNull()?.validity() ?: 0) + @@ -11189,7 +11153,6 @@ private constructor( return other is LocalShellCallOutput && id == other.id && - callId == other.callId && output == other.output && type == other.type && agent == other.agent && @@ -11198,13 +11161,13 @@ private constructor( } private val hashCode: Int by lazy { - Objects.hash(id, callId, output, type, agent, status, additionalProperties) + Objects.hash(id, output, type, agent, status, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "LocalShellCallOutput{id=$id, callId=$callId, output=$output, type=$type, agent=$agent, status=$status, additionalProperties=$additionalProperties}" + "LocalShellCallOutput{id=$id, output=$output, type=$type, agent=$agent, status=$status, additionalProperties=$additionalProperties}" } /** An invocation of a tool on an MCP server. */ diff --git a/openai-java-core/src/main/kotlin/com/openai/models/conversations/items/ConversationItem.kt b/openai-java-core/src/main/kotlin/com/openai/models/conversations/items/ConversationItem.kt index eaa7052c8..8239a777f 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/conversations/items/ConversationItem.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/conversations/items/ConversationItem.kt @@ -5212,7 +5212,6 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val id: JsonField, - private val callId: JsonField, private val output: JsonField, private val type: JsonValue, private val status: JsonField, @@ -5222,19 +5221,10 @@ private constructor( @JsonCreator private constructor( @JsonProperty("id") @ExcludeMissing id: JsonField = JsonMissing.of(), - @JsonProperty("call_id") @ExcludeMissing callId: JsonField = JsonMissing.of(), @JsonProperty("output") @ExcludeMissing output: JsonField = JsonMissing.of(), @JsonProperty("type") @ExcludeMissing type: JsonValue = JsonMissing.of(), @JsonProperty("status") @ExcludeMissing status: JsonField = JsonMissing.of(), - ) : this(id, callId, output, type, status, mutableMapOf()) - - /** - * The unique ID of the local shell tool call output. - * - * @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is - * unexpectedly missing or null (e.g. if the server responded with an unexpected value). - */ - fun id(): String = id.getRequired("id") + ) : this(id, output, type, status, mutableMapOf()) /** * The unique ID of the local shell tool call generated by the model. @@ -5242,7 +5232,7 @@ private constructor( * @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is * unexpectedly missing or null (e.g. if the server responded with an unexpected value). */ - fun callId(): String = callId.getRequired("call_id") + fun id(): String = id.getRequired("id") /** * A JSON string of the output of the local shell tool call. @@ -5280,13 +5270,6 @@ private constructor( */ @JsonProperty("id") @ExcludeMissing fun _id(): JsonField = id - /** - * Returns the raw JSON value of [callId]. - * - * Unlike [callId], this method doesn't throw if the JSON field has an unexpected type. - */ - @JsonProperty("call_id") @ExcludeMissing fun _callId(): JsonField = callId - /** * Returns the raw JSON value of [output]. * @@ -5321,7 +5304,6 @@ private constructor( * The following fields are required: * ```java * .id() - * .callId() * .output() * ``` */ @@ -5332,7 +5314,6 @@ private constructor( class Builder internal constructor() { private var id: JsonField? = null - private var callId: JsonField? = null private var output: JsonField? = null private var type: JsonValue = JsonValue.from("local_shell_call_output") private var status: JsonField = JsonMissing.of() @@ -5341,14 +5322,13 @@ private constructor( @JvmSynthetic internal fun from(localShellCallOutput: LocalShellCallOutput) = apply { id = localShellCallOutput.id - callId = localShellCallOutput.callId output = localShellCallOutput.output type = localShellCallOutput.type status = localShellCallOutput.status additionalProperties = localShellCallOutput.additionalProperties.toMutableMap() } - /** The unique ID of the local shell tool call output. */ + /** The unique ID of the local shell tool call generated by the model. */ fun id(id: String) = id(JsonField.of(id)) /** @@ -5360,18 +5340,6 @@ private constructor( */ fun id(id: JsonField) = apply { this.id = id } - /** The unique ID of the local shell tool call generated by the model. */ - fun callId(callId: String) = callId(JsonField.of(callId)) - - /** - * Sets [Builder.callId] to an arbitrary JSON value. - * - * You should usually call [Builder.callId] with a well-typed [String] value instead. - * This method is primarily for setting the field to an undocumented or not yet - * supported value. - */ - fun callId(callId: JsonField) = apply { this.callId = callId } - /** A JSON string of the output of the local shell tool call. */ fun output(output: String) = output(JsonField.of(output)) @@ -5440,7 +5408,6 @@ private constructor( * The following fields are required: * ```java * .id() - * .callId() * .output() * ``` * @@ -5449,7 +5416,6 @@ private constructor( fun build(): LocalShellCallOutput = LocalShellCallOutput( checkRequired("id", id), - checkRequired("callId", callId), checkRequired("output", output), type, status, @@ -5474,7 +5440,6 @@ private constructor( } id() - callId() output() _type().let { if (it != JsonValue.from("local_shell_call_output")) { @@ -5502,7 +5467,6 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (id.asKnown().isPresent) 1 else 0) + - (if (callId.asKnown().isPresent) 1 else 0) + (if (output.asKnown().isPresent) 1 else 0) + type.let { if (it == JsonValue.from("local_shell_call_output")) 1 else 0 } + (status.asKnown().getOrNull()?.validity() ?: 0) @@ -5660,7 +5624,6 @@ private constructor( return other is LocalShellCallOutput && id == other.id && - callId == other.callId && output == other.output && type == other.type && status == other.status && @@ -5668,13 +5631,13 @@ private constructor( } private val hashCode: Int by lazy { - Objects.hash(id, callId, output, type, status, additionalProperties) + Objects.hash(id, output, type, status, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "LocalShellCallOutput{id=$id, callId=$callId, output=$output, type=$type, status=$status, additionalProperties=$additionalProperties}" + "LocalShellCallOutput{id=$id, output=$output, type=$type, status=$status, additionalProperties=$additionalProperties}" } /** A list of tools available on an MCP server. */ diff --git a/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseInputItem.kt b/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseInputItem.kt index 1a4c7a796..d6da6cd1b 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseInputItem.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseInputItem.kt @@ -7988,7 +7988,6 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val id: JsonField, - private val callId: JsonField, private val output: JsonField, private val type: JsonValue, private val status: JsonField, @@ -7998,19 +7997,10 @@ private constructor( @JsonCreator private constructor( @JsonProperty("id") @ExcludeMissing id: JsonField = JsonMissing.of(), - @JsonProperty("call_id") @ExcludeMissing callId: JsonField = JsonMissing.of(), @JsonProperty("output") @ExcludeMissing output: JsonField = JsonMissing.of(), @JsonProperty("type") @ExcludeMissing type: JsonValue = JsonMissing.of(), @JsonProperty("status") @ExcludeMissing status: JsonField = JsonMissing.of(), - ) : this(id, callId, output, type, status, mutableMapOf()) - - /** - * The unique ID of the local shell tool call output. - * - * @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is - * unexpectedly missing or null (e.g. if the server responded with an unexpected value). - */ - fun id(): String = id.getRequired("id") + ) : this(id, output, type, status, mutableMapOf()) /** * The unique ID of the local shell tool call generated by the model. @@ -8018,7 +8008,7 @@ private constructor( * @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is * unexpectedly missing or null (e.g. if the server responded with an unexpected value). */ - fun callId(): String = callId.getRequired("call_id") + fun id(): String = id.getRequired("id") /** * A JSON string of the output of the local shell tool call. @@ -8056,13 +8046,6 @@ private constructor( */ @JsonProperty("id") @ExcludeMissing fun _id(): JsonField = id - /** - * Returns the raw JSON value of [callId]. - * - * Unlike [callId], this method doesn't throw if the JSON field has an unexpected type. - */ - @JsonProperty("call_id") @ExcludeMissing fun _callId(): JsonField = callId - /** * Returns the raw JSON value of [output]. * @@ -8097,7 +8080,6 @@ private constructor( * The following fields are required: * ```java * .id() - * .callId() * .output() * ``` */ @@ -8108,7 +8090,6 @@ private constructor( class Builder internal constructor() { private var id: JsonField? = null - private var callId: JsonField? = null private var output: JsonField? = null private var type: JsonValue = JsonValue.from("local_shell_call_output") private var status: JsonField = JsonMissing.of() @@ -8117,14 +8098,13 @@ private constructor( @JvmSynthetic internal fun from(localShellCallOutput: LocalShellCallOutput) = apply { id = localShellCallOutput.id - callId = localShellCallOutput.callId output = localShellCallOutput.output type = localShellCallOutput.type status = localShellCallOutput.status additionalProperties = localShellCallOutput.additionalProperties.toMutableMap() } - /** The unique ID of the local shell tool call output. */ + /** The unique ID of the local shell tool call generated by the model. */ fun id(id: String) = id(JsonField.of(id)) /** @@ -8136,18 +8116,6 @@ private constructor( */ fun id(id: JsonField) = apply { this.id = id } - /** The unique ID of the local shell tool call generated by the model. */ - fun callId(callId: String) = callId(JsonField.of(callId)) - - /** - * Sets [Builder.callId] to an arbitrary JSON value. - * - * You should usually call [Builder.callId] with a well-typed [String] value instead. - * This method is primarily for setting the field to an undocumented or not yet - * supported value. - */ - fun callId(callId: JsonField) = apply { this.callId = callId } - /** A JSON string of the output of the local shell tool call. */ fun output(output: String) = output(JsonField.of(output)) @@ -8216,7 +8184,6 @@ private constructor( * The following fields are required: * ```java * .id() - * .callId() * .output() * ``` * @@ -8225,7 +8192,6 @@ private constructor( fun build(): LocalShellCallOutput = LocalShellCallOutput( checkRequired("id", id), - checkRequired("callId", callId), checkRequired("output", output), type, status, @@ -8250,7 +8216,6 @@ private constructor( } id() - callId() output() _type().let { if (it != JsonValue.from("local_shell_call_output")) { @@ -8278,7 +8243,6 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (id.asKnown().isPresent) 1 else 0) + - (if (callId.asKnown().isPresent) 1 else 0) + (if (output.asKnown().isPresent) 1 else 0) + type.let { if (it == JsonValue.from("local_shell_call_output")) 1 else 0 } + (status.asKnown().getOrNull()?.validity() ?: 0) @@ -8436,7 +8400,6 @@ private constructor( return other is LocalShellCallOutput && id == other.id && - callId == other.callId && output == other.output && type == other.type && status == other.status && @@ -8444,13 +8407,13 @@ private constructor( } private val hashCode: Int by lazy { - Objects.hash(id, callId, output, type, status, additionalProperties) + Objects.hash(id, output, type, status, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "LocalShellCallOutput{id=$id, callId=$callId, output=$output, type=$type, status=$status, additionalProperties=$additionalProperties}" + "LocalShellCallOutput{id=$id, output=$output, type=$type, status=$status, additionalProperties=$additionalProperties}" } /** A tool representing a request to execute one or more shell commands. */ diff --git a/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseItem.kt b/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseItem.kt index aaebdccca..9242d1c10 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseItem.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseItem.kt @@ -5233,7 +5233,6 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val id: JsonField, - private val callId: JsonField, private val output: JsonField, private val type: JsonValue, private val status: JsonField, @@ -5243,19 +5242,10 @@ private constructor( @JsonCreator private constructor( @JsonProperty("id") @ExcludeMissing id: JsonField = JsonMissing.of(), - @JsonProperty("call_id") @ExcludeMissing callId: JsonField = JsonMissing.of(), @JsonProperty("output") @ExcludeMissing output: JsonField = JsonMissing.of(), @JsonProperty("type") @ExcludeMissing type: JsonValue = JsonMissing.of(), @JsonProperty("status") @ExcludeMissing status: JsonField = JsonMissing.of(), - ) : this(id, callId, output, type, status, mutableMapOf()) - - /** - * The unique ID of the local shell tool call output. - * - * @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is - * unexpectedly missing or null (e.g. if the server responded with an unexpected value). - */ - fun id(): String = id.getRequired("id") + ) : this(id, output, type, status, mutableMapOf()) /** * The unique ID of the local shell tool call generated by the model. @@ -5263,7 +5253,7 @@ private constructor( * @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is * unexpectedly missing or null (e.g. if the server responded with an unexpected value). */ - fun callId(): String = callId.getRequired("call_id") + fun id(): String = id.getRequired("id") /** * A JSON string of the output of the local shell tool call. @@ -5301,13 +5291,6 @@ private constructor( */ @JsonProperty("id") @ExcludeMissing fun _id(): JsonField = id - /** - * Returns the raw JSON value of [callId]. - * - * Unlike [callId], this method doesn't throw if the JSON field has an unexpected type. - */ - @JsonProperty("call_id") @ExcludeMissing fun _callId(): JsonField = callId - /** * Returns the raw JSON value of [output]. * @@ -5342,7 +5325,6 @@ private constructor( * The following fields are required: * ```java * .id() - * .callId() * .output() * ``` */ @@ -5353,7 +5335,6 @@ private constructor( class Builder internal constructor() { private var id: JsonField? = null - private var callId: JsonField? = null private var output: JsonField? = null private var type: JsonValue = JsonValue.from("local_shell_call_output") private var status: JsonField = JsonMissing.of() @@ -5362,14 +5343,13 @@ private constructor( @JvmSynthetic internal fun from(localShellCallOutput: LocalShellCallOutput) = apply { id = localShellCallOutput.id - callId = localShellCallOutput.callId output = localShellCallOutput.output type = localShellCallOutput.type status = localShellCallOutput.status additionalProperties = localShellCallOutput.additionalProperties.toMutableMap() } - /** The unique ID of the local shell tool call output. */ + /** The unique ID of the local shell tool call generated by the model. */ fun id(id: String) = id(JsonField.of(id)) /** @@ -5381,18 +5361,6 @@ private constructor( */ fun id(id: JsonField) = apply { this.id = id } - /** The unique ID of the local shell tool call generated by the model. */ - fun callId(callId: String) = callId(JsonField.of(callId)) - - /** - * Sets [Builder.callId] to an arbitrary JSON value. - * - * You should usually call [Builder.callId] with a well-typed [String] value instead. - * This method is primarily for setting the field to an undocumented or not yet - * supported value. - */ - fun callId(callId: JsonField) = apply { this.callId = callId } - /** A JSON string of the output of the local shell tool call. */ fun output(output: String) = output(JsonField.of(output)) @@ -5461,7 +5429,6 @@ private constructor( * The following fields are required: * ```java * .id() - * .callId() * .output() * ``` * @@ -5470,7 +5437,6 @@ private constructor( fun build(): LocalShellCallOutput = LocalShellCallOutput( checkRequired("id", id), - checkRequired("callId", callId), checkRequired("output", output), type, status, @@ -5495,7 +5461,6 @@ private constructor( } id() - callId() output() _type().let { if (it != JsonValue.from("local_shell_call_output")) { @@ -5523,7 +5488,6 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (id.asKnown().isPresent) 1 else 0) + - (if (callId.asKnown().isPresent) 1 else 0) + (if (output.asKnown().isPresent) 1 else 0) + type.let { if (it == JsonValue.from("local_shell_call_output")) 1 else 0 } + (status.asKnown().getOrNull()?.validity() ?: 0) @@ -5681,7 +5645,6 @@ private constructor( return other is LocalShellCallOutput && id == other.id && - callId == other.callId && output == other.output && type == other.type && status == other.status && @@ -5689,13 +5652,13 @@ private constructor( } private val hashCode: Int by lazy { - Objects.hash(id, callId, output, type, status, additionalProperties) + Objects.hash(id, output, type, status, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "LocalShellCallOutput{id=$id, callId=$callId, output=$output, type=$type, status=$status, additionalProperties=$additionalProperties}" + "LocalShellCallOutput{id=$id, output=$output, type=$type, status=$status, additionalProperties=$additionalProperties}" } /** A list of tools available on an MCP server. */ diff --git a/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseOutputItem.kt b/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseOutputItem.kt index 5bdfdeb09..122e779cc 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseOutputItem.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseOutputItem.kt @@ -5128,7 +5128,6 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val id: JsonField, - private val callId: JsonField, private val output: JsonField, private val type: JsonValue, private val status: JsonField, @@ -5138,19 +5137,10 @@ private constructor( @JsonCreator private constructor( @JsonProperty("id") @ExcludeMissing id: JsonField = JsonMissing.of(), - @JsonProperty("call_id") @ExcludeMissing callId: JsonField = JsonMissing.of(), @JsonProperty("output") @ExcludeMissing output: JsonField = JsonMissing.of(), @JsonProperty("type") @ExcludeMissing type: JsonValue = JsonMissing.of(), @JsonProperty("status") @ExcludeMissing status: JsonField = JsonMissing.of(), - ) : this(id, callId, output, type, status, mutableMapOf()) - - /** - * The unique ID of the local shell tool call output. - * - * @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is - * unexpectedly missing or null (e.g. if the server responded with an unexpected value). - */ - fun id(): String = id.getRequired("id") + ) : this(id, output, type, status, mutableMapOf()) /** * The unique ID of the local shell tool call generated by the model. @@ -5158,7 +5148,7 @@ private constructor( * @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is * unexpectedly missing or null (e.g. if the server responded with an unexpected value). */ - fun callId(): String = callId.getRequired("call_id") + fun id(): String = id.getRequired("id") /** * A JSON string of the output of the local shell tool call. @@ -5196,13 +5186,6 @@ private constructor( */ @JsonProperty("id") @ExcludeMissing fun _id(): JsonField = id - /** - * Returns the raw JSON value of [callId]. - * - * Unlike [callId], this method doesn't throw if the JSON field has an unexpected type. - */ - @JsonProperty("call_id") @ExcludeMissing fun _callId(): JsonField = callId - /** * Returns the raw JSON value of [output]. * @@ -5237,7 +5220,6 @@ private constructor( * The following fields are required: * ```java * .id() - * .callId() * .output() * ``` */ @@ -5248,7 +5230,6 @@ private constructor( class Builder internal constructor() { private var id: JsonField? = null - private var callId: JsonField? = null private var output: JsonField? = null private var type: JsonValue = JsonValue.from("local_shell_call_output") private var status: JsonField = JsonMissing.of() @@ -5257,14 +5238,13 @@ private constructor( @JvmSynthetic internal fun from(localShellCallOutput: LocalShellCallOutput) = apply { id = localShellCallOutput.id - callId = localShellCallOutput.callId output = localShellCallOutput.output type = localShellCallOutput.type status = localShellCallOutput.status additionalProperties = localShellCallOutput.additionalProperties.toMutableMap() } - /** The unique ID of the local shell tool call output. */ + /** The unique ID of the local shell tool call generated by the model. */ fun id(id: String) = id(JsonField.of(id)) /** @@ -5276,18 +5256,6 @@ private constructor( */ fun id(id: JsonField) = apply { this.id = id } - /** The unique ID of the local shell tool call generated by the model. */ - fun callId(callId: String) = callId(JsonField.of(callId)) - - /** - * Sets [Builder.callId] to an arbitrary JSON value. - * - * You should usually call [Builder.callId] with a well-typed [String] value instead. - * This method is primarily for setting the field to an undocumented or not yet - * supported value. - */ - fun callId(callId: JsonField) = apply { this.callId = callId } - /** A JSON string of the output of the local shell tool call. */ fun output(output: String) = output(JsonField.of(output)) @@ -5356,7 +5324,6 @@ private constructor( * The following fields are required: * ```java * .id() - * .callId() * .output() * ``` * @@ -5365,7 +5332,6 @@ private constructor( fun build(): LocalShellCallOutput = LocalShellCallOutput( checkRequired("id", id), - checkRequired("callId", callId), checkRequired("output", output), type, status, @@ -5390,7 +5356,6 @@ private constructor( } id() - callId() output() _type().let { if (it != JsonValue.from("local_shell_call_output")) { @@ -5418,7 +5383,6 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (id.asKnown().isPresent) 1 else 0) + - (if (callId.asKnown().isPresent) 1 else 0) + (if (output.asKnown().isPresent) 1 else 0) + type.let { if (it == JsonValue.from("local_shell_call_output")) 1 else 0 } + (status.asKnown().getOrNull()?.validity() ?: 0) @@ -5576,7 +5540,6 @@ private constructor( return other is LocalShellCallOutput && id == other.id && - callId == other.callId && output == other.output && type == other.type && status == other.status && @@ -5584,13 +5547,13 @@ private constructor( } private val hashCode: Int by lazy { - Objects.hash(id, callId, output, type, status, additionalProperties) + Objects.hash(id, output, type, status, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "LocalShellCallOutput{id=$id, callId=$callId, output=$output, type=$type, status=$status, additionalProperties=$additionalProperties}" + "LocalShellCallOutput{id=$id, output=$output, type=$type, status=$status, additionalProperties=$additionalProperties}" } /** An invocation of a tool on an MCP server. */ diff --git a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseInputItemTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseInputItemTest.kt index 466ce57c8..e5b489153 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseInputItemTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseInputItemTest.kt @@ -2047,7 +2047,6 @@ internal class BetaResponseInputItemTest { val localShellCallOutput = BetaResponseInputItem.LocalShellCallOutput.builder() .id("id") - .callId("call_id") .output("output") .agent( BetaResponseInputItem.LocalShellCallOutput.Agent.builder() @@ -2105,7 +2104,6 @@ internal class BetaResponseInputItemTest { BetaResponseInputItem.ofLocalShellCallOutput( BetaResponseInputItem.LocalShellCallOutput.builder() .id("id") - .callId("call_id") .output("output") .agent( BetaResponseInputItem.LocalShellCallOutput.Agent.builder() diff --git a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseItemTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseItemTest.kt index caa932d1c..d07923856 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseItemTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseItemTest.kt @@ -2076,7 +2076,6 @@ internal class BetaResponseItemTest { val localShellCallOutput = BetaResponseItem.LocalShellCallOutput.builder() .id("id") - .callId("call_id") .output("output") .agent( BetaResponseItem.LocalShellCallOutput.Agent.builder() @@ -2130,7 +2129,6 @@ internal class BetaResponseItemTest { BetaResponseItem.ofLocalShellCallOutput( BetaResponseItem.LocalShellCallOutput.builder() .id("id") - .callId("call_id") .output("output") .agent( BetaResponseItem.LocalShellCallOutput.Agent.builder() diff --git a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseOutputItemTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseOutputItemTest.kt index fe637696d..b283306b2 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseOutputItemTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseOutputItemTest.kt @@ -1880,7 +1880,6 @@ internal class BetaResponseOutputItemTest { val localShellCallOutput = BetaResponseOutputItem.LocalShellCallOutput.builder() .id("id") - .callId("call_id") .output("output") .agent( BetaResponseOutputItem.LocalShellCallOutput.Agent.builder() @@ -1933,7 +1932,6 @@ internal class BetaResponseOutputItemTest { BetaResponseOutputItem.ofLocalShellCallOutput( BetaResponseOutputItem.LocalShellCallOutput.builder() .id("id") - .callId("call_id") .output("output") .agent( BetaResponseOutputItem.LocalShellCallOutput.Agent.builder() diff --git a/openai-java-core/src/test/kotlin/com/openai/models/conversations/items/ConversationItemTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/conversations/items/ConversationItemTest.kt index db4119999..3bcacad2f 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/conversations/items/ConversationItemTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/conversations/items/ConversationItemTest.kt @@ -1486,7 +1486,6 @@ internal class ConversationItemTest { val localShellCallOutput = ConversationItem.LocalShellCallOutput.builder() .id("id") - .callId("call_id") .output("output") .status(ConversationItem.LocalShellCallOutput.Status.IN_PROGRESS) .build() @@ -1531,7 +1530,6 @@ internal class ConversationItemTest { ConversationItem.ofLocalShellCallOutput( ConversationItem.LocalShellCallOutput.builder() .id("id") - .callId("call_id") .output("output") .status(ConversationItem.LocalShellCallOutput.Status.IN_PROGRESS) .build() diff --git a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseInputItemTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseInputItemTest.kt index 18e337968..cd9f575e9 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseInputItemTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseInputItemTest.kt @@ -1566,7 +1566,6 @@ internal class ResponseInputItemTest { val localShellCallOutput = ResponseInputItem.LocalShellCallOutput.builder() .id("id") - .callId("call_id") .output("output") .status(ResponseInputItem.LocalShellCallOutput.Status.IN_PROGRESS) .build() @@ -1615,7 +1614,6 @@ internal class ResponseInputItemTest { ResponseInputItem.ofLocalShellCallOutput( ResponseInputItem.LocalShellCallOutput.builder() .id("id") - .callId("call_id") .output("output") .status(ResponseInputItem.LocalShellCallOutput.Status.IN_PROGRESS) .build() diff --git a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseItemTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseItemTest.kt index 01a93083e..91b8d1b5d 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseItemTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseItemTest.kt @@ -1592,7 +1592,6 @@ internal class ResponseItemTest { val localShellCallOutput = ResponseItem.LocalShellCallOutput.builder() .id("id") - .callId("call_id") .output("output") .status(ResponseItem.LocalShellCallOutput.Status.IN_PROGRESS) .build() @@ -1638,7 +1637,6 @@ internal class ResponseItemTest { ResponseItem.ofLocalShellCallOutput( ResponseItem.LocalShellCallOutput.builder() .id("id") - .callId("call_id") .output("output") .status(ResponseItem.LocalShellCallOutput.Status.IN_PROGRESS) .build() diff --git a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseOutputItemTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseOutputItemTest.kt index 8a50f8d64..06053de6b 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseOutputItemTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseOutputItemTest.kt @@ -1405,7 +1405,6 @@ internal class ResponseOutputItemTest { val localShellCallOutput = ResponseOutputItem.LocalShellCallOutput.builder() .id("id") - .callId("call_id") .output("output") .status(ResponseOutputItem.LocalShellCallOutput.Status.IN_PROGRESS) .build() @@ -1449,7 +1448,6 @@ internal class ResponseOutputItemTest { ResponseOutputItem.ofLocalShellCallOutput( ResponseOutputItem.LocalShellCallOutput.builder() .id("id") - .callId("call_id") .output("output") .status(ResponseOutputItem.LocalShellCallOutput.Status.IN_PROGRESS) .build() diff --git a/openai-java-core/src/test/kotlin/com/openai/models/responses/StructuredResponseOutputItemTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/responses/StructuredResponseOutputItemTest.kt index b45d9c8cf..7f850b69a 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/responses/StructuredResponseOutputItemTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/responses/StructuredResponseOutputItemTest.kt @@ -163,7 +163,6 @@ internal class StructuredResponseOutputItemTest { private val LOCAL_SHELL_CALL_OUTPUT = ResponseOutputItem.LocalShellCallOutput.builder() .id(STRING) - .callId(STRING) .output(STRING) .status(ResponseOutputItem.LocalShellCallOutput.Status.IN_PROGRESS) .build()