Skip to content

Commit 6087908

Browse files
Revert "fix(api)!: declare required local shell output call IDs (#1044)" (#1048)
Reverts #1044. This reverts commit 8d1aa39. The generated SDK changes merged before their source-of-truth changes. This restores the preceding SDK definitions and generation metadata. The resulting tracked tree exactly matches the reverted commit’s parent. Validation: the complete patch is byte-for-byte the inverse of the named commit. Version manifests and release configuration are unchanged. Local test suites and new review rounds were not run for this urgent revert; current-head CI will validate this PR. CI diagnosis: [API compatibility](https://github.com/openai/openai-java/actions/runs/35622435007/job/106411604513) fails on 15 `callId` references in the external tests extracted from base `8d1aa390a325d69b68dd4db060f5dfefb1385e81`. Every failing reference was introduced by #1044. This revert's entire tracked tree equals pre-promotion `d2969f8efd588e492d97ec41e892cd91e9906c59`; the new API is deliberately absent. The required aggregate fails because this job fails. The existing workflow always executes the detector from the current PR base and imports that base's tests. It has no supported unreleased-revert baseline selection. Changing this PR's detector or fixtures cannot override that trusted check. An explicit repository policy for validating unreleased reverts against their verified pre-promotion baseline is needed to reconcile this check with the requested rollback. The gate remains failed; no API restoration, test exclusion, forced-success status, retry, or version bump was used.
1 parent 8d1aa39 commit 6087908

17 files changed

Lines changed: 48 additions & 326 deletions

‎.castiron.stats.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
schema_version: 1
2-
generation_id: d66d942a-5c41-42fc-ae6d-0be56422f8a9
3-
openapi_spec_hash: 1ed71fc8e894116bb22f5ef57b7042c9
4-
openapi_transformed_spec_hash: d25d1c0ad7d91b71798878c81622fc74
5-
config_hash: 4b829cf550bc8e7f104da50d664100c4
6-
codegen_sha: 2921b00a04cd701ee27d6e98f7b2952ce448bd83
7-
codegen_hash: 15c14e7c6f2576c80bb64276f8289d1c83d87245ff6aac7dc14ee3f808898fcd
8-
public_codegen_sha: d07a8dcab0b433be6b296a64a04de6118620193a
2+
generation_id: bf3df9de-61e0-4ac3-aba8-bc72a0e6ad7c
3+
openapi_spec_hash: c7a2088dc0fb8d92f9a934ba4dca2d80
4+
openapi_transformed_spec_hash: 7281a983306f72fc39720d7057f11ef7
5+
config_hash: 60435bd668a5724c530fe7e9d6869e9a
6+
codegen_sha: 04ef2db20d0b32b277242a48487634d885e71cfd
7+
codegen_hash: 6d6c043d25782a4d8090ccdfcc621f32341ba1116513d40b535b89085b9704bd
8+
public_codegen_sha: 5ccf425b618de67fb7c595d8bc1aabaf3d699888

‎api_reference/openapi.transformed.yml‎

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44672,7 +44672,7 @@ components:
4467244672
id:
4467344673
type: string
4467444674
description: |
44675-
The unique ID of the local shell tool call output.
44675+
The unique ID of the local shell tool call generated by the model.
4467644676
output:
4467744677
type: string
4467844678
description: |
@@ -44687,10 +44687,6 @@ components:
4468744687
description: |
4468844688
The status of the item. One of `in_progress`, `completed`, or `incomplete`.
4468944689
- type: 'null'
44690-
call_id:
44691-
type: string
44692-
description: |
44693-
The unique ID of the local shell tool call generated by the model.
4469444690
required:
4469544691
- id
4469644692
- type
@@ -44789,6 +44785,7 @@ components:
4478944785
- type: 'null'
4479044786
required:
4479144787
- type
44788+
- request_id
4479244789
- approve
4479344790
- approval_request_id
4479444791
MCPApprovalResponseResource:
@@ -44825,6 +44822,7 @@ components:
4482544822
required:
4482644823
- type
4482744824
- id
44825+
- request_id
4482844826
- approve
4482944827
- approval_request_id
4483044828
MCPListTools:
@@ -86287,6 +86285,7 @@ components:
8628786285
- type: 'null'
8628886286
required:
8628986287
- type
86288+
- request_id
8629086289
- approve
8629186290
- approval_request_id
8629286291
BetaMCPApprovalRequest:
@@ -86798,7 +86797,7 @@ components:
8679886797
id:
8679986798
type: string
8680086799
description: |
86801-
The unique ID of the local shell tool call output.
86800+
The unique ID of the local shell tool call generated by the model.
8680286801
output:
8680386802
type: string
8680486803
description: |
@@ -86813,10 +86812,6 @@ components:
8681386812
description: |
8681486813
The status of the item. One of `in_progress`, `completed`, or `incomplete`.
8681586814
- type: 'null'
86816-
call_id:
86817-
type: string
86818-
description: |
86819-
The unique ID of the local shell tool call generated by the model.
8682086815
required:
8682186816
- id
8682286817
- type
@@ -89336,6 +89331,7 @@ components:
8933689331
required:
8933789332
- type
8933889333
- id
89334+
- request_id
8933989335
- approve
8934089336
- approval_request_id
8934189337
BetaApplyPatchToolCallOutput:

‎openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseInputItem.kt‎

Lines changed: 5 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -13804,7 +13804,6 @@ private constructor(
1380413804
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
1380513805
private constructor(
1380613806
private val id: JsonField<String>,
13807-
private val callId: JsonField<String>,
1380813807
private val output: JsonField<String>,
1380913808
private val type: JsonValue,
1381013809
private val agent: JsonField<Agent>,
@@ -13815,28 +13814,19 @@ private constructor(
1381513814
@JsonCreator
1381613815
private constructor(
1381713816
@JsonProperty("id") @ExcludeMissing id: JsonField<String> = JsonMissing.of(),
13818-
@JsonProperty("call_id") @ExcludeMissing callId: JsonField<String> = JsonMissing.of(),
1381913817
@JsonProperty("output") @ExcludeMissing output: JsonField<String> = JsonMissing.of(),
1382013818
@JsonProperty("type") @ExcludeMissing type: JsonValue = JsonMissing.of(),
1382113819
@JsonProperty("agent") @ExcludeMissing agent: JsonField<Agent> = JsonMissing.of(),
1382213820
@JsonProperty("status") @ExcludeMissing status: JsonField<Status> = JsonMissing.of(),
13823-
) : this(id, callId, output, type, agent, status, mutableMapOf())
13824-
13825-
/**
13826-
* The unique ID of the local shell tool call output.
13827-
*
13828-
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is
13829-
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
13830-
*/
13831-
fun id(): String = id.getRequired("id")
13821+
) : this(id, output, type, agent, status, mutableMapOf())
1383213822

1383313823
/**
1383413824
* The unique ID of the local shell tool call generated by the model.
1383513825
*
1383613826
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is
1383713827
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
1383813828
*/
13839-
fun callId(): String = callId.getRequired("call_id")
13829+
fun id(): String = id.getRequired("id")
1384013830

1384113831
/**
1384213832
* A JSON string of the output of the local shell tool call.
@@ -13882,13 +13872,6 @@ private constructor(
1388213872
*/
1388313873
@JsonProperty("id") @ExcludeMissing fun _id(): JsonField<String> = id
1388413874

13885-
/**
13886-
* Returns the raw JSON value of [callId].
13887-
*
13888-
* Unlike [callId], this method doesn't throw if the JSON field has an unexpected type.
13889-
*/
13890-
@JsonProperty("call_id") @ExcludeMissing fun _callId(): JsonField<String> = callId
13891-
1389213875
/**
1389313876
* Returns the raw JSON value of [output].
1389413877
*
@@ -13930,7 +13913,6 @@ private constructor(
1393013913
* The following fields are required:
1393113914
* ```java
1393213915
* .id()
13933-
* .callId()
1393413916
* .output()
1393513917
* ```
1393613918
*/
@@ -13941,7 +13923,6 @@ private constructor(
1394113923
class Builder internal constructor() {
1394213924

1394313925
private var id: JsonField<String>? = null
13944-
private var callId: JsonField<String>? = null
1394513926
private var output: JsonField<String>? = null
1394613927
private var type: JsonValue = JsonValue.from("local_shell_call_output")
1394713928
private var agent: JsonField<Agent> = JsonMissing.of()
@@ -13951,15 +13932,14 @@ private constructor(
1395113932
@JvmSynthetic
1395213933
internal fun from(localShellCallOutput: LocalShellCallOutput) = apply {
1395313934
id = localShellCallOutput.id
13954-
callId = localShellCallOutput.callId
1395513935
output = localShellCallOutput.output
1395613936
type = localShellCallOutput.type
1395713937
agent = localShellCallOutput.agent
1395813938
status = localShellCallOutput.status
1395913939
additionalProperties = localShellCallOutput.additionalProperties.toMutableMap()
1396013940
}
1396113941

13962-
/** The unique ID of the local shell tool call output. */
13942+
/** The unique ID of the local shell tool call generated by the model. */
1396313943
fun id(id: String) = id(JsonField.of(id))
1396413944

1396513945
/**
@@ -13971,18 +13951,6 @@ private constructor(
1397113951
*/
1397213952
fun id(id: JsonField<String>) = apply { this.id = id }
1397313953

13974-
/** The unique ID of the local shell tool call generated by the model. */
13975-
fun callId(callId: String) = callId(JsonField.of(callId))
13976-
13977-
/**
13978-
* Sets [Builder.callId] to an arbitrary JSON value.
13979-
*
13980-
* You should usually call [Builder.callId] with a well-typed [String] value instead.
13981-
* This method is primarily for setting the field to an undocumented or not yet
13982-
* supported value.
13983-
*/
13984-
fun callId(callId: JsonField<String>) = apply { this.callId = callId }
13985-
1398613954
/** A JSON string of the output of the local shell tool call. */
1398713955
fun output(output: String) = output(JsonField.of(output))
1398813956

@@ -14066,7 +14034,6 @@ private constructor(
1406614034
* The following fields are required:
1406714035
* ```java
1406814036
* .id()
14069-
* .callId()
1407014037
* .output()
1407114038
* ```
1407214039
*
@@ -14075,7 +14042,6 @@ private constructor(
1407514042
fun build(): LocalShellCallOutput =
1407614043
LocalShellCallOutput(
1407714044
checkRequired("id", id),
14078-
checkRequired("callId", callId),
1407914045
checkRequired("output", output),
1408014046
type,
1408114047
agent,
@@ -14101,7 +14067,6 @@ private constructor(
1410114067
}
1410214068

1410314069
id()
14104-
callId()
1410514070
output()
1410614071
_type().let {
1410714072
if (it != JsonValue.from("local_shell_call_output")) {
@@ -14130,7 +14095,6 @@ private constructor(
1413014095
@JvmSynthetic
1413114096
internal fun validity(): Int =
1413214097
(if (id.asKnown().isPresent) 1 else 0) +
14133-
(if (callId.asKnown().isPresent) 1 else 0) +
1413414098
(if (output.asKnown().isPresent) 1 else 0) +
1413514099
type.let { if (it == JsonValue.from("local_shell_call_output")) 1 else 0 } +
1413614100
(agent.asKnown().getOrNull()?.validity() ?: 0) +
@@ -14469,7 +14433,6 @@ private constructor(
1446914433

1447014434
return other is LocalShellCallOutput &&
1447114435
id == other.id &&
14472-
callId == other.callId &&
1447314436
output == other.output &&
1447414437
type == other.type &&
1447514438
agent == other.agent &&
@@ -14478,13 +14441,13 @@ private constructor(
1447814441
}
1447914442

1448014443
private val hashCode: Int by lazy {
14481-
Objects.hash(id, callId, output, type, agent, status, additionalProperties)
14444+
Objects.hash(id, output, type, agent, status, additionalProperties)
1448214445
}
1448314446

1448414447
override fun hashCode(): Int = hashCode
1448514448

1448614449
override fun toString() =
14487-
"LocalShellCallOutput{id=$id, callId=$callId, output=$output, type=$type, agent=$agent, status=$status, additionalProperties=$additionalProperties}"
14450+
"LocalShellCallOutput{id=$id, output=$output, type=$type, agent=$agent, status=$status, additionalProperties=$additionalProperties}"
1448814451
}
1448914452

1449014453
/** A tool representing a request to execute one or more shell commands. */

0 commit comments

Comments
 (0)