Skip to content

Conversation

@aniketmaurya
Copy link
Contributor

fixes the following code typo

- for request in enumerate(result.context_wrapper.usage.request_usage_entries):
+ for i, request in enumerate(result.context_wrapper.usage.request_usage_entries):
    print(f"Request {i + 1}: {request.input_tokens} in, {request.output_tokens} out")

@aniketmaurya aniketmaurya changed the title fix code typo in for loop docs: fix code typo in for loop Dec 19, 2025
@ihower
Copy link
Contributor

ihower commented Dec 19, 2025

This line is also modified in https://github.com/openai/openai-agents-python/pull/2114/changes, where the typo is fixed too. It is expected to be included in the next v0.7 release.

@seratch seratch added the documentation Improvements or additions to documentation label Dec 19, 2025
@seratch
Copy link
Member

seratch commented Dec 19, 2025

@ihower let me merge this simple document only changes

@seratch seratch merged commit 10b73ae into openai:main Dec 19, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants