aws / aws/bedrock-agentcore-sdk-python
AgentCoreMemorySessionManager does not support extended thinking
- Lingua principale
- Python
- Stelle
- 761
- Fork
- 147
- Merge medio
- 1g 23h
- PR unite (30g)
- 7
Descrizione
**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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con AgentCoreMemorySessionManager e riproduci l’interazione a due turni usando Claude Sonnet 4.5 con extended thinking e gli additional_request_fields mostrati. Traccia il modo in cui i messaggi vengono persistiti e ripristinati tra i turni; il lavoro è completato quando la seconda interazione termina senza l’errore di validazione di ConverseStream.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, python
- Ambito
- ai, backend-api-design
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100