---
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:34:57
date_header: Mon, 15 Sep 2025 04:47:31 -0700
priority: normal
status: awaiting_approval
uid: 30449
---

## 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:** Mon, 15 Sep 2025 04:47:31 -0700

### Body (preview)

@serialx commented on this pull request.







> +            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:

+                    # Reconstruct thinking blocks from content and signature

+                    pending_thinking_blocks = []

+                    for content_item in content_items:

+                        if (

+                            isinstance(content_item, dict)

+                            and content_item.get("type") == "reasoning_text"

+                        ):

+                            thinking_block = {

+                                "type": "thinking",

+                                "thinking": content_item.get("text", ""),

+                            }

+                            # Add signature if available

+                            if signature:

+                                thinking_block["signature"] = signature



@codex actually, when the reasoning is redacted the form is completely different. See the example in the [official docs](https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking#thinking-redaction):



The second block is the example of a redacted thinking content:



```

{

  "content": [

    {

      "type": "thinking",

      "thinking": "Let me analyze this step by step...",

      "signature": "WaUjzkypQ2mUEVM36O2TxuC06KN8xyfbJwyem2dw3URve/op91XWHOEBLLqIOMfFG/UvLEczmEsUjavL...."

    },

    {

      "type": "redacted_thinking",

      "data": "EmwKAhgBEgy3va3pzix/LafPsn4aDFIT2Xlxh0L5L8rLVyIwxtE3rAFBa8cr3qpPkNRj2YfWXGmKDxH4mPnZ5sQ7vB9URj2pLmN3kF8/dW5hR7xJ0aP1oLs9yTcMnKVf2wRpEGjH9XZaBt4UvDcPrQ..."

    },

    {

      "type": "text",

      "text": "Based on my analysis..."

    }

  ]

}

---

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