每日 Harness 开源 · Source
返回本期 · Back to 2026-07-24

博客文章 · Blog Posts2026-07-24 · Friday, July 24, 2026

Prompt Caching in Agents

earendil.com原文 ↗

Prompt Caching in Agents
文章从实际 agent 请求结构解释 prompt cache:只有稳定前缀、相同模型参数和满足供应商阈值的上下文才能命中,频繁改写 system prompt 或在前部插入动态状态都会破坏复用。作者建议把工具定义和长期指令放前面,把时间、轨迹等易变内容后置;这是一篇把缓存命中率与上下文工程直接连接起来的性能分析。
浏览

评论 · Comments