aws / aws/bedrock-agentcore-sdk-python

AgentCoreMemorySessionManager does not support extended thinking

Abierto
#159 0 comentarios 6 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
Python
Estrellas
761
Forks
147
Merge medio
1 d 23 h
PR fusionados (30 d)
7

Descripción

**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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con AgentCoreMemorySessionManager y reproduce la interacción de dos turnos usando Claude Sonnet 4.5 con extended thinking y los additional_request_fields mostrados. Traza cómo se persisten y restauran los mensajes entre turnos; se considera completado cuando la segunda interacción termina sin el error de validación de ConverseStream.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
aws, python
Área
ai, backend-api-design
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.