Files
spring-ai/prompt-caching/output/01-breakpoints-on-the-wire.txt
T

10 lines
608 B
Plaintext

# Where each AnthropicCacheStrategy puts cache_control (request: 4 tools, a system prompt, one user turn)
Request shape: tools[0..3], system (one string), messages[0] = retrieved context + question
NONE breakpoints=0 []
TOOLS_ONLY breakpoints=1 [tools[3]] {"type":"ephemeral","ttl":"5m"}
SYSTEM_ONLY breakpoints=1 [system[0]] {"type":"ephemeral","ttl":"5m"}
SYSTEM_AND_TOOLS breakpoints=2 [tools[3], system[0]] {"type":"ephemeral","ttl":"5m"}
CONVERSATION_HISTORY breakpoints=3 [tools[3], system[0], messages[0].content[0]] {"type":"ephemeral","ttl":"5m"}