openai-agents-python/examples/reasoning_content/__init__.py
Jinseop Song fcafae1d50
Add reasoning content - fix on #494 (#871)
my personal update on
https://github.com/openai/openai-agents-python/pull/494

Key changes:
- Updated `ResponseReasoningItem` to use the correct structure with
`id`, `summary`, and `type="reasoning"` fields
- Fixed `ResponseReasoningSummaryPartAddedEvent` to include
`summary_index` parameter and use a dictionary for the `part` parameter
- Fixed `ResponseReasoningSummaryTextDeltaEvent` to include
`summary_index` parameter
- Updated `ResponseReasoningSummaryPartDoneEvent` to include
`summary_index` and use a dictionary for `part`
- Changed how the `Summary` object is accessed in tests (using `.text`
property instead of subscript notation)
- Updated `chatcmpl_converter.py` to use the `Summary` class instead of
a dictionary for better handlign


Fixes #494
2025-06-27 12:06:13 -04:00

3 lines
81 B
Python

"""
Examples demonstrating how to use models that provide reasoning content.
"""