[PR #3739] docs(deepagents): document Anthropic prompt caching with memory #3767

Open
opened 2026-06-05 18:53:04 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/3739
Author: @AdemBoukhris457
Created: 4/25/2026
Status: 🔄 Open

Base: mainHead: docs/deepagents-memory-anthropic-cache-control


📝 Commits (1)

  • aced23a docs(deepagents): document Anthropic cache_control with memory middleware

📊 Changes

1 file changed (+8 additions, -0 deletions)

View changed files

📝 src/oss/deepagents/memory.mdx (+8 -0)

📄 Description

Add "Anthropic prompt caching with memory" to memory.mdx: add_cache_control from create_deep_agent, ChatAnthropic breakpoint, contrast with graph cache and checkpointer/store, manual MemoryMiddleware default vs factory path.

Overview

Adds a Anthropic prompt caching with memory subsection under How memory works on the Memory page. Documents @[MemoryMiddleware] add_cache_control=True when using memory= on @[create_deep_agent] / createDeepAgent, runtime @[ChatAnthropic] + cache_control: {"type": "ephemeral"} on the last system block, pairing with @[AnthropicPromptCachingMiddleware], middleware ordering, Bedrock/Vertex limits, distinction from LangGraph node cache / checkpointer / store, and the difference between manual MemoryMiddleware defaults and the factory path.

Type of change

Type: Update existing documentation

Related issues/PRs

  • GitHub issue: closes #3738
  • Feature PR:
  • Linear issue:
  • Slack thread:

Checklist

  • I have read the contributing guidelines, including the language policy
  • I have tested my changes locally using docs dev
  • All code examples have been tested and work correctly (no new runnable code blocks in this change)
  • I have used root relative paths for internal links
  • I have updated navigation in src/docs.json if needed (not required — same page)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/3739 **Author:** [@AdemBoukhris457](https://github.com/AdemBoukhris457) **Created:** 4/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/deepagents-memory-anthropic-cache-control` --- ### 📝 Commits (1) - [`aced23a`](https://github.com/langchain-ai/docs/commit/aced23aafd95c7585e95c45c8873114d105db8d7) docs(deepagents): document Anthropic cache_control with memory middleware ### 📊 Changes **1 file changed** (+8 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/deepagents/memory.mdx` (+8 -0) </details> ### 📄 Description Add "Anthropic prompt caching with memory" to memory.mdx: add_cache_control from create_deep_agent, ChatAnthropic breakpoint, contrast with graph cache and checkpointer/store, manual MemoryMiddleware default vs factory path. ## Overview Adds a **Anthropic prompt caching with memory** subsection under **How memory** works on the [Memory](/oss/deepagents/memory) page. Documents @[`MemoryMiddleware`] **`add_cache_control=True`** when using **`memory=`** on @[`create_deep_agent`] / `createDeepAgent`, runtime @[`ChatAnthropic`] + **`cache_control: {"type": "ephemeral"}`** on the last system block, pairing with @[`AnthropicPromptCachingMiddleware`], middleware ordering, Bedrock/Vertex limits, distinction from LangGraph node **`cache`** / **`checkpointer`** / **`store`**, and the difference between manual **`MemoryMiddleware`** defaults and the factory path. ## Type of change **Type:** Update existing documentation ## Related issues/PRs - GitHub issue: closes #3738 - Feature PR: <!-- For LangChain employees, if applicable: --> - Linear issue: - Slack thread: ## Checklist - [x] I have read the [contributing guidelines](README.md), including the [language policy](https://docs.langchain.com/oss/python/contributing/overview#language-policy) - [x] I have tested my changes locally using `docs dev` - [x] All code examples have been tested and work correctly (no new runnable code blocks in this change) - [x] I have used **root relative** paths for internal links - [x] I have updated navigation in `src/docs.json` if needed (not required — same page) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 18:53:04 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#3767