Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions agentops/instrumentation/openai_agents/attributes/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,10 @@
# )
attributes = {}

attributes.update(_extract_attributes_from_mapping(

Check warning on line 297 in agentops/instrumentation/openai_agents/attributes/response.py

View check run for this annotation

Codecov / codecov/patch

agentops/instrumentation/openai_agents/attributes/response.py#L297

Added line #L297 was not covered by tests
usage.__dict__,
RESPONSE_USAGE_ATTRIBUTES))

# input_tokens_details is a dict if it exists
if hasattr(usage, 'input_tokens_details'):
input_details = usage.input_tokens_details
Expand Down
Loading