Type of issue
request for content
Language
Python
Description
Summary
create_deep_agent / createDeepAgent expose a cache argument (see config snippet in Customize Deep Agents), but the Deep Agents docs do not explain what it is, how it differs from checkpointer / store, or when readers should set it.
Current state
- Snippet:
create-deep-agent-config-options-py.mdx (and JS equivalent if present) lists cache: BaseCache | None = None with no surrounding prose.
- API: In deepagents
graph.py, cache is described briefly as “The cache to use for the agent” and “Passed through to [create_agent][langchain.agents.create_agent].”
Gap
Readers need a short user-facing explanation:
cache is LangGraph-style graph / node cache backing (e.g. InMemoryCache, SqliteCache) used with node cache_policy, not conversation persistence.
- Contrast with
checkpointer (thread state / resume / HITL), store (cross-thread app storage, e.g. StoreBackend), and Anthropic prompt caching (middleware / message cache_control) so the names are not conflated.
- When to leave it
None: typical deep agent usage without custom node cache policies.
- When to set it: advanced cases aligning with LangGraph node caching (deterministic expensive nodes, TTL, shared cache backend).
- Caveat: mis-keyed or over-broad caching can serve stale results for non-deterministic work.
Suggested fix
Add a Note or small subsection on the Customization page (near the config-options snippet or a “Persistence and storage” callout) with 1–2 paragraphs + a link to LangGraph Node caching and, if applicable, LangChain create_agent docs for the same parameter.
Acceptance criteria
Type of issue
request for content
Language
Python
Description
Summary
create_deep_agent/createDeepAgentexpose acacheargument (see config snippet in Customize Deep Agents), but the Deep Agents docs do not explain what it is, how it differs fromcheckpointer/store, or when readers should set it.Current state
create-deep-agent-config-options-py.mdx(and JS equivalent if present) listscache: BaseCache | None = Nonewith no surrounding prose.graph.py,cacheis described briefly as “The cache to use for the agent” and “Passed through to [create_agent][langchain.agents.create_agent].”Gap
Readers need a short user-facing explanation:
cacheis LangGraph-style graph / node cache backing (e.g.InMemoryCache,SqliteCache) used with nodecache_policy, not conversation persistence.checkpointer(thread state / resume / HITL),store(cross-thread app storage, e.g. StoreBackend), and Anthropic prompt caching (middleware / messagecache_control) so the names are not conflated.None: typical deep agent usage without custom node cache policies.Suggested fix
Add a Note or small subsection on the Customization page (near the config-options snippet or a “Persistence and storage” callout) with 1–2 paragraphs + a link to LangGraph Node caching and, if applicable, LangChain
create_agentdocs for the same parameter.Acceptance criteria
cachepurpose and how it differs fromcheckpointerandstore.Noneis fine for common setups.BaseCache/CachePolicy.