From fae5fca6e3cc260fdbcd8fdb47408d39ad870232 Mon Sep 17 00:00:00 2001 From: markstuart-oai <323302876+markstuart-oai@users.noreply.github.com> Date: Fri, 4 Sep 2026 12:04:55 -0700 Subject: [PATCH] feat(api): correct function argument completion event fields Castiron-Internal-PR: https://github.com/openai/openai-python-internal/pull/82 Castiron-Source-SHA: 0004bccd015a0c8c73534d7ac1cd74cf4801690b Castiron-Public-Base-SHA: 88b4d4341af38e84784221d73c175f2088fa6b85 --- .castiron.stats.yml | 12 ++++++------ api_reference/openapi.transformed.yml | 10 ---------- ...ta_response_function_call_arguments_done_event.py | 3 --- .../response_function_call_arguments_done_event.py | 3 --- 4 files changed, 6 insertions(+), 22 deletions(-) diff --git a/.castiron.stats.yml b/.castiron.stats.yml index 7842b74f4a..fa277b5818 100644 --- a/.castiron.stats.yml +++ b/.castiron.stats.yml @@ -1,8 +1,8 @@ schema_version: 1 -generation_id: 50d48205-978b-4b96-83b9-e92c82968d25 -openapi_spec_hash: a5a64d9aaf4a4022898dd86685c102ab -openapi_transformed_spec_hash: f7c7c9ee2566bcf8165ab87b4851a1e5 +generation_id: c8545f55-7807-4037-9c86-3784b96f3960 +openapi_spec_hash: 0f07f47154153d68e717ae594b07dc4c +openapi_transformed_spec_hash: a1a351d4356d65a15a857d0aca5f7b09 config_hash: dfe8a20c64cc5d852e69c441cbd28ae7 -codegen_sha: 9cbf6087efd2a6d5a57028c17f031fea6f7f5015 -codegen_hash: 331343ebbad785fc4c6d5ce8197e5b3de60b4b989f77df08356eb00fc6e958ef -public_codegen_sha: 0c33f635083e108a823a23805ec04f2e6d1add4d +codegen_sha: 1d8024b3eb37e3e329104029ed81fd2085ff1218 +codegen_hash: e1ee819da91a6c8ae8c8af8c4e3054f52eaec918912e9be3b2bd6bc692608d5e +public_codegen_sha: 67cbc9398ec6c0feb5bad24421b648b42bbc405f diff --git a/api_reference/openapi.transformed.yml b/api_reference/openapi.transformed.yml index e82580d8ea..1ba6aca36e 100644 --- a/api_reference/openapi.transformed.yml +++ b/api_reference/openapi.transformed.yml @@ -53477,9 +53477,6 @@ components: item_id: type: string description: The ID of the item. - name: - type: string - description: The name of the function that was called. output_index: type: integer description: The index of the output item. @@ -53492,7 +53489,6 @@ components: required: - type - item_id - - name - output_index - arguments - sequence_number @@ -53503,7 +53499,6 @@ components: { "type": "response.function_call_arguments.done", "item_id": "item-abc", - "name": "get_weather", "output_index": 1, "arguments": "{ \"arg\": 123 }", "sequence_number": 1 @@ -77509,9 +77504,6 @@ components: item_id: type: string description: The ID of the item. - name: - type: string - description: The name of the function that was called. output_index: type: integer description: The index of the output item. @@ -77524,7 +77516,6 @@ components: required: - type - item_id - - name - output_index - arguments - sequence_number @@ -77535,7 +77526,6 @@ components: { "type": "response.function_call_arguments.done", "item_id": "item-abc", - "name": "get_weather", "output_index": 1, "arguments": "{ \"arg\": 123 }", "sequence_number": 1 diff --git a/src/openai/types/beta/beta_response_function_call_arguments_done_event.py b/src/openai/types/beta/beta_response_function_call_arguments_done_event.py index 0925b09c7e..0c50ee1a9b 100644 --- a/src/openai/types/beta/beta_response_function_call_arguments_done_event.py +++ b/src/openai/types/beta/beta_response_function_call_arguments_done_event.py @@ -24,9 +24,6 @@ class BetaResponseFunctionCallArgumentsDoneEvent(BaseModel): item_id: str """The ID of the item.""" - name: str - """The name of the function that was called.""" - output_index: int """The index of the output item.""" diff --git a/src/openai/types/responses/response_function_call_arguments_done_event.py b/src/openai/types/responses/response_function_call_arguments_done_event.py index 84110992b4..793edac97b 100644 --- a/src/openai/types/responses/response_function_call_arguments_done_event.py +++ b/src/openai/types/responses/response_function_call_arguments_done_event.py @@ -16,9 +16,6 @@ class ResponseFunctionCallArgumentsDoneEvent(BaseModel): item_id: str """The ID of the item.""" - name: str - """The name of the function that was called.""" - output_index: int """The index of the output item."""