aws / aws/bedrock-agentcore-sdk-python
AgentCoreMemorySessionManager does not support extended thinking
- Langage dominant
- Python
- Étoiles
- 761
- Forks
- 147
- Merge moyen
- 1 j 23 h
- PR mergées (30 j)
- 7
Description
**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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez avec AgentCoreMemorySessionManager et reproduisez l’interaction en deux tours avec Claude Sonnet 4.5, extended thinking et les additional_request_fields indiqués. Suivez la manière dont les messages sont persistés et restaurés entre les tours ; le travail est considéré comme terminé lorsque la deuxième interaction se termine sans l’erreur de validation de ConverseStream.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- aws, python
- Domaine
- ai, backend-api-design
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100