Skip to content

Responses API streaming response.function_call_arguments.done event missing function name #2723

Description

@CarsonStevensAI

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • This is an issue with the Python library

Describe the bug

The name attribute for the response.function_call_arguments.done event is None so you can't figure out which function to call. I tried uninstalling and reinstalling the latest openai version and still the same problem. I tried to add multiple tools and still the same problem.

To Reproduce

TOOLS_SPEC = [
    {
        "type": "function",
        "name": "search_parts",
        "description": "Check the availability of a specific auto part based on the provided vehicle information.",
        "parameters": {
            "type": "object",
            "properties": {
                "make": {"type": "string"},
                "model": {"type": "string"},
                "year": {"type": "string"},
                "part_type": {"type": "string"}
            },
            "required": ["make", "model", "year", "part_type"],
            "additionalProperties": False,
        },
    }
]

stream = client.responses.create(
    model="gpt-5-mini",
    input=messages,
    tools=TOOLS_SPEC,
    stream=True,
    reasoning={ "effort": "low", "summary": "auto" }
)
for event in stream:
    et = getattr(event, "type", None)
    if et == "response.function_call_arguments.done":
         print("FUNC ARGS DONE:", event.model_dump())

And I see this in the output
FUNC ARGS DONE: {'arguments': '{"make":"Ford","model":"Bronco","year":"2022","part_type":"Clutch Disc"}', 'item_id': 'fc_0accd097e3ea311f00690517123e5081a0a9cf17ce3c3a2132', 'name': None, 'output_index': 1, 'sequence_number': 125, 'type': 'response.function_call_arguments.done'}

The name attribute of the event is None so there isn't a way to tell what function the model is trying to call

Code snippets

OS

Windows

Python version

Python 3.12

Library version

openai-2.6.1

Activity

  1. added a commit that references this issue on Nov 5, 2025
    0fb63aa
  2. agurianov commented on Dec 7, 2025

    @agurianov

    Hi, we are waiting for this fix instead of you releasing last time

  3. marcuswood-oai commented on Sep 9, 2026

    @marcuswood-oai
    Contributor

    Thank you for reporting this. The SDK incorrectly declared name on argument-completion events. #3801 corrected that contract in 3.9.0.

    Please upgrade and replace event.name with the name from the function-call item, matched using event.item_id, as shown in the function-calling guide. This requires a code change; upgrading does not populate name. We’re closing because the SDK now matches the event contract.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions