aws / aws/bedrock-agentcore-sdk-python
AgentCoreMemorySessionManager does not support extended thinking
- Ngôn ngữ chính
- Python
- Star
- 761
- Fork
- 147
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 7
Mô tả
**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
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với AgentCoreMemorySessionManager và tái hiện tương tác gồm hai lượt bằng Claude Sonnet 4.5 với extended thinking và các additional_request_fields được hiển thị. Theo dõi cách các message được lưu bền vững và khôi phục giữa các lượt; hoàn tất có nghĩa là tương tác thứ hai hoàn thành mà không có lỗi xác thực của ConverseStream.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- aws, python
- Lĩnh vực
- ai, backend-api-design
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100