Skip to content

🐛 Bug Report: OpenAI Agents instrumentation #4058

Closed

Description

@thisthat

Which component is this bug for?

OpenAI Instrumentation

📜 Description

When running the OpenAI Customer Service Agents demo, the instrumentation crashes at this line:

async_responses_get_or_create_wrapper
    existing_data = responses.get(parsed_response.id) 
                                  ^^^^^^^^^^^^^^^^^^
AttributeError: 'AsyncAPIResponse' object has no attribute 'id'

👟 Reproduction steps

  1. Instrument https://github.com/openai/openai-cs-agents-demo with OpenLLMetry
  2. Run the demo

👍 Expected behavior

No crashes

👎 Actual Behavior with Screenshots

it crashes

async_responses_get_or_create_wrapper
    existing_data = responses.get(parsed_response.id) 
                                  ^^^^^^^^^^^^^^^^^^
AttributeError: 'AsyncAPIResponse' object has no attribute 'id'

🤖 Python Version

3.13

📃 Provide any additional context for the Bug.

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

Yes I am willing to submit a PR!

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions