---
type: email
from: Sung-jin Brian Hong <notifications@github.com>
subject: Re: [openai/openai-agents-python] feat: Support Anthropic extended

 thinking and interleaved thinking (PR #1744)
received: 2026-03-06 07:36:01
date_header: Tue, 16 Sep 2025 01:09:45 -0700
priority: normal
status: awaiting_approval
uid: 30552
---

## Email Content

**From:** Sung-jin Brian Hong <notifications@github.com>
**Subject:** Re: [openai/openai-agents-python] feat: Support Anthropic extended

 thinking and interleaved thinking (PR #1744)
**Date:** Tue, 16 Sep 2025 01:09:45 -0700

### Body (preview)

@serialx commented on this pull request.







> @@ -483,9 +514,28 @@ def ensure_assistant_message() -> ChatCompletionAssistantMessageParam:

                     f"Encountered an item_reference, which is not supported: {item_ref}"

                 )

 

-            # 7) reasoning message => not handled

-            elif cls.maybe_reasoning_message(item):

-                pass

+            # 7) reasoning message => extract thinking blocks if present

+            elif reasoning_item := cls.maybe_reasoning_message(item):

+                # Reconstruct thinking blocks from content (text) and encrypted_content (signature)

+                content_items = reasoning_item.get("content", [])

+                signature = reasoning_item.get("encrypted_content")

+

+                if content_items and preserve_reasoning_message:



Done!



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/pull/1744#discussion_r2351364465

You are receiving this because you are subscribed to this thread.



Message ID: <openai/openai-agents-python/pull/1744/review/3228243958@github.com>

---

## Suggested Actions
- [ ] Reply
- [ ] Archive
- [ ] Escalate
