René's URL Explorer Experiment


Title: Short-term memory - Docs by LangChain

Open Graph Title: Short-term memory - Docs by LangChain

X Title: Short-term memory - Docs by LangChain

Opengraph URL: https://docs.langchain.com/oss/python/langchain/short-term-memory

Generator: Mintlify

direct link

Domain: docs.langchain.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://docs.langchain.com/#organization","name":"Docs by LangChain","url":"https://docs.langchain.com","logo":{"@type":"ImageObject","url":"https://mintcdn.com/langchain-5e9cc07a/nQm-sjd_MByLhgeW/images/brand/langchain-docs-dark-blue.png?fit=max&auto=format&n=nQm-sjd_MByLhgeW&q=85&s=5babf1a1962208fd7eed942fa2432ecb"}},{"@type":"WebSite","@id":"https://docs.langchain.com#website","name":"Docs by LangChain","url":"https://docs.langchain.com","publisher":{"@id":"https://docs.langchain.com/#organization"}},{"@type":"WebPage","@id":"https://docs.langchain.com/oss/python/langchain/short-term-memory#webpage","url":"https://docs.langchain.com/oss/python/langchain/short-term-memory","name":"Short-term memory","dateModified":"2026-11-04T22:52:08.081Z","isPartOf":{"@id":"https://docs.langchain.com#website"},"breadcrumb":{"@id":"https://docs.langchain.com/oss/python/langchain/short-term-memory#breadcrumb"}},{"@type":"BreadcrumbList","@id":"https://docs.langchain.com/oss/python/langchain/short-term-memory#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Core components","item":"https://docs.langchain.com/oss/python/langchain/agents"},{"@type":"ListItem","position":2,"name":"Short-term memory","item":"https://docs.langchain.com/oss/python/langchain/short-term-memory"}]},{"@type":["Article","TechArticle"],"@id":"https://docs.langchain.com/oss/python/langchain/short-term-memory#article","headline":"Short-term memory","name":"Short-term memory","url":"https://docs.langchain.com/oss/python/langchain/short-term-memory","mainEntityOfPage":{"@id":"https://docs.langchain.com/oss/python/langchain/short-term-memory#webpage"},"dateModified":"2026-11-04T22:52:08.081Z","publisher":{"@id":"https://docs.langchain.com/#organization"},"isPartOf":{"@id":"https://docs.langchain.com#website"}}]}

application-nameDocs by LangChain
og:site_nameDocs by LangChain
og:typewebsite
og:imagehttps://langchain-5e9cc07a.mintlify.app/_mintlify/api/og/v2?division=Core+components&title=Short-term+memory&theme=5f787871cd9e0fc0371614e6&signature=d7e2540e88814427de43496ca5f08fb94dff48dafb2c4c16797c036dec8536aa
og:image:width1200
og:image:height630
twitter:cardsummary_large_image
twitter:imagehttps://langchain-5e9cc07a.mintlify.app/_mintlify/api/og/v2?division=Core+components&title=Short-term+memory&theme=5f787871cd9e0fc0371614e6&signature=d7e2540e88814427de43496ca5f08fb94dff48dafb2c4c16797c036dec8536aa
twitter:image:width1200
twitter:image:height630
msapplication-config/mintlify-assets/_mintlify/favicons/langchain-5e9cc07a/YSQua9Gt91yRswvJ/_generated/favicon/browserconfig.xml
apple-mobile-web-app-titleDocs by LangChain
msapplication-TileColor#161F34
google-site-verification9_2KHeJwmEdwgncBRk1MsKxriZz7Sc21EJdbfCxkTEo

Links:

/llms.txthttps://docs.langchain.com/llms.txt
Skip to main contenthttps://docs.langchain.com/oss/python/langchain/short-term-memory#content-area
Get early bird pricing nowhttps://interrupt.langchain.com/
Docs by LangChain home pagehttps://docs.langchain.com/
Ask AIhttps://chat.langchain.com/
GitHubhttps://github.com/langchain-ai
Try LangSmithhttps://smith.langchain.com/
Try LangSmithhttps://smith.langchain.com/
Overviewhttps://docs.langchain.com/build-overview
Managed Deep Agentshttps://docs.langchain.com/langsmith/python/managed-deep-agents-overview
Deep Agentshttps://docs.langchain.com/oss/python/deepagents/overview
LangChainhttps://docs.langchain.com/oss/python/langchain/overview
LangGraphhttps://docs.langchain.com/oss/python/langgraph/overview
OpenWikihttps://docs.langchain.com/oss/openwiki/overview
Integrationshttps://docs.langchain.com/oss/python/integrations/providers/overview
Learnhttps://docs.langchain.com/oss/python/learn
Referencehttps://docs.langchain.com/oss/python/reference/overview
Contributehttps://docs.langchain.com/oss/python/contributing/overview
Overviewhttps://docs.langchain.com/oss/python/langchain/overview
Installhttps://docs.langchain.com/oss/python/langchain/install
Quickstarthttps://docs.langchain.com/oss/python/langchain/quickstart
Changeloghttps://docs.langchain.com/oss/python/releases/changelog
Philosophyhttps://docs.langchain.com/oss/python/langchain/philosophy
Agentshttps://docs.langchain.com/oss/python/langchain/agents
Modelshttps://docs.langchain.com/oss/python/langchain/models
Messageshttps://docs.langchain.com/oss/python/langchain/messages
Toolshttps://docs.langchain.com/oss/python/langchain/tools
Short-term memoryhttps://docs.langchain.com/oss/python/langchain/short-term-memory
Event streaminghttps://docs.langchain.com/oss/python/langchain/event-streaming
Streaminghttps://docs.langchain.com/oss/python/langchain/streaming
Structured outputhttps://docs.langchain.com/oss/python/langchain/structured-output
Overviewhttps://docs.langchain.com/oss/python/langchain/middleware/overview
Prebuilt middlewarehttps://docs.langchain.com/oss/python/langchain/middleware/built-in
Custom middlewarehttps://docs.langchain.com/oss/python/langchain/middleware/custom
Overviewhttps://docs.langchain.com/oss/python/langchain/frontend/overview
Guardrailshttps://docs.langchain.com/oss/python/langchain/guardrails
Runtimehttps://docs.langchain.com/oss/python/langchain/runtime
Context engineeringhttps://docs.langchain.com/oss/python/langchain/context-engineering
Human-in-the-loophttps://docs.langchain.com/oss/python/langchain/human-in-the-loop
Retrievalhttps://docs.langchain.com/oss/python/deepagents/retrieval
Long-term memoryhttps://docs.langchain.com/oss/python/langchain/long-term-memory
LangSmith Studiohttps://docs.langchain.com/oss/python/langchain/studio
Agent Chat UIhttps://docs.langchain.com/oss/python/langchain/ui
Deploymenthttps://docs.langchain.com/oss/python/langchain/deploy
Observabilityhttps://docs.langchain.com/oss/python/langchain/observability
Overviewhttps://docs.langchain.com/oss/python/langchain/short-term-memory#overview
Usagehttps://docs.langchain.com/oss/python/langchain/short-term-memory#usage
In productionhttps://docs.langchain.com/oss/python/langchain/short-term-memory#in-production
Customizing agent memoryhttps://docs.langchain.com/oss/python/langchain/short-term-memory#customizing-agent-memory
Common patternshttps://docs.langchain.com/oss/python/langchain/short-term-memory#common-patterns
Trim messageshttps://docs.langchain.com/oss/python/langchain/short-term-memory#trim-messages
Delete messageshttps://docs.langchain.com/oss/python/langchain/short-term-memory#delete-messages
Summarize messageshttps://docs.langchain.com/oss/python/langchain/short-term-memory#summarize-messages
Access memoryhttps://docs.langchain.com/oss/python/langchain/short-term-memory#access-memory
Toolshttps://docs.langchain.com/oss/python/langchain/short-term-memory#tools
Read short-term memory in a toolhttps://docs.langchain.com/oss/python/langchain/short-term-memory#read-short-term-memory-in-a-tool
Write short-term memory from toolshttps://docs.langchain.com/oss/python/langchain/short-term-memory#write-short-term-memory-from-tools
Prompthttps://docs.langchain.com/oss/python/langchain/short-term-memory#prompt
Before modelhttps://docs.langchain.com/oss/python/langchain/short-term-memory#before-model
After modelhttps://docs.langchain.com/oss/python/langchain/short-term-memory#after-model
​https://docs.langchain.com/oss/python/langchain/short-term-memory#overview
messageshttps://docs.langchain.com/oss/python/langchain/messages
long-term memoryhttps://docs.langchain.com/oss/python/langchain/long-term-memory
​https://docs.langchain.com/oss/python/langchain/short-term-memory#usage
​https://docs.langchain.com/oss/python/langchain/short-term-memory#in-production
Psycopg installation docshttps://www.psycopg.org/psycopg3/docs/basic/install.html
list of checkpointer librarieshttps://docs.langchain.com/oss/python/langgraph/checkpointers#checkpointer-libraries
​https://docs.langchain.com/oss/python/langchain/short-term-memory#customizing-agent-memory
AgentStatehttps://reference.langchain.com/python/langchain/agents/middleware/types/AgentState
AgentStatehttps://reference.langchain.com/python/langchain/agents/middleware/types/AgentState
create_agenthttps://reference.langchain.com/python/langchain/agents/factory/create_agent
state_schemahttps://reference.langchain.com/python/langchain/middleware/#langchain.agents.middleware.AgentMiddleware.state_schema
​https://docs.langchain.com/oss/python/langchain/short-term-memory#common-patterns
short-term memoryhttps://docs.langchain.com/oss/python/langchain/short-term-memory#usage
​https://docs.langchain.com/oss/python/langchain/short-term-memory#trim-messages
@before_modelhttps://reference.langchain.com/python/langchain/agents/middleware/types/before_model
​https://docs.langchain.com/oss/python/langchain/short-term-memory#delete-messages
add_messageshttps://reference.langchain.com/python/langgraph/graph/message/add_messages
reducerhttps://docs.langchain.com/oss/python/langgraph/graph-api#reducers
AgentStatehttps://reference.langchain.com/python/langchain/agents/middleware/types/AgentState
​https://docs.langchain.com/oss/python/langchain/short-term-memory#summarize-messages
SummarizationMiddlewarehttps://docs.langchain.com/oss/python/langchain/middleware#summarization
SummarizationMiddlewarehttps://docs.langchain.com/oss/python/langchain/middleware#summarization
​https://docs.langchain.com/oss/python/langchain/short-term-memory#access-memory
​https://docs.langchain.com/oss/python/langchain/short-term-memory#tools
​https://docs.langchain.com/oss/python/langchain/short-term-memory#read-short-term-memory-in-a-tool
​https://docs.langchain.com/oss/python/langchain/short-term-memory#write-short-term-memory-from-tools
​https://docs.langchain.com/oss/python/langchain/short-term-memory#prompt
​https://docs.langchain.com/oss/python/langchain/short-term-memory#before-model
@before_modelhttps://reference.langchain.com/python/langchain/agents/middleware/types/before_model
​https://docs.langchain.com/oss/python/langchain/short-term-memory#after-model
@after_modelhttps://reference.langchain.com/python/langchain/agents/middleware/types/after_model
Connect these docshttps://docs.langchain.com/use-these-docs
Edit this page on GitHubhttps://github.com/langchain-ai/docs/edit/main/src/oss/langchain/short-term-memory.mdx
file an issuehttps://github.com/langchain-ai/docs/issues/new/choose
ToolsPrevioushttps://docs.langchain.com/oss/python/langchain/tools
Event streamingNexthttps://docs.langchain.com/oss/python/langchain/event-streaming
Docs by LangChain home pagehttps://docs.langchain.com/
githubhttps://github.com/langchain-ai
xhttps://x.com/LangChain
linkedinhttps://www.linkedin.com/company/langchain
youtubehttps://www.youtube.com/@LangChain
Forumhttps://forum.langchain.com/
Changeloghttps://changelog.langchain.com/
LangChain Academyhttps://academy.langchain.com/
Contact Saleshttps://www.langchain.com/contact-sales
Homehttps://langchain.com/
Trust Centerhttps://trust.langchain.com/
Careershttps://langchain.com/careers
Bloghttps://blog.langchain.com/
githubhttps://github.com/langchain-ai
xhttps://x.com/LangChain
linkedinhttps://www.linkedin.com/company/langchain
youtubehttps://www.youtube.com/@LangChain

Viewport: width=device-width, initial-scale=1, viewport-fit=cover


URLs of crawlers that visited me.