aws / aws/bedrock-agentcore-sdk-python

AgentCoreMemorySessionManager does not support extended thinking

オープン
#159 コメント 0 件 リアクション 6 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Python
スター
761
フォーク
147
平均マージ
1日 23時間
マージ済み PR(30日)
7

説明

**Describe the bug**
Multi-turn interaction with an agent using a model with [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking) does not work

```
An error occurred (ValidationException) when calling the ConverseStream operation: The model returned the following errors: messages.11.content.0.type: Expected `thinking` or `redacted_thinking`, but found `text`. When `thinking` is enabled, a final `assistant` message must start with a thinking block. We recommend you include thinking blocks from previous turns.
```

**To Reproduce**
Steps to reproduce the behavior:
* Create a Strands Agent with AgentCoreMemorySessionManager and with Claude Sonnet 4.5 with extended thinking enabled
```
additional_request_fields={
"thinking": {"type": "enabled", "budget_tokens": 4096}
}
```
* Interact with the agent twice in the same session

**Expected behavior**
Multi-turn interaction works without an error

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

AgentCoreMemorySessionManager から始め、示されている additional_request_fields を使い、extended thinking を有効にした Claude Sonnet 4.5 で2ターンのインタラクションを再現します。ターン間でメッセージがどのように永続化および復元されるかを追跡します。完了条件は、2回目のインタラクションが ConverseStream のバリデーションエラーなしで完了することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws, python
領域
ai, backend-api-design
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。