Change instructions mid-conversation and keep your cache

Send system messages after a user turn, so instructions can change in a long session without losing cache hits.

Departamento
Engineering
Enlaces relacionados
Compartir

Instructions sometimes change partway through a long session. You can send a role: "system" message inside the messages array, after a user turn, and keep your prompt cache hits, so an agent gets new instructions without paying to reprocess the conversation.

Placement rules apply. It's on Claude Opus 4.8, on the Claude API, Claude in Amazon Bedrock, and Google Cloud.

Actualizaciones anteriores

28 may 2026
27 may 2026
21 may 2026
19 may 2026