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: python.langchain.com

application-nameDocs by LangChain
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
og:site_nameDocs by LangChain
og:imagehttps://langchain-5e9cc07a.mintlify.app/mintlify-assets/_next/image?url=/_mintlify/api/og?division=Core+components&appearance=system&title=Short-term+memory&logoLight=https%3A%2F%2Fmintcdn.com%2Flangchain-5e9cc07a%2FnQm-sjd_MByLhgeW%2Fimages%2Fbrand%2Flangchain-docs-dark-blue.png%3Ffit%3Dmax%26auto%3Dformat%26n%3DnQm-sjd_MByLhgeW%26q%3D85%26s%3D5babf1a1962208fd7eed942fa2432ecb&logoDark=https%3A%2F%2Fmintcdn.com%2Flangchain-5e9cc07a%2FnQm-sjd_MByLhgeW%2Fimages%2Fbrand%2Flangchain-docs-light-blue.png%3Ffit%3Dmax%26auto%3Dformat%26n%3DnQm-sjd_MByLhgeW%26q%3D85%26s%3D0bcd2a1f2599ed228bcedf0f535b45b1&primaryColor=%23161F34&lightColor=%237FC8FF&darkColor=%23006DDD&backgroundLight=%23FFFFFF&backgroundDark=%23030710&w=1200&q=100
og:image:width1200
og:image:height630
og:typewebsite
twitter:cardsummary_large_image
twitter:imagehttps://langchain-5e9cc07a.mintlify.app/mintlify-assets/_next/image?url=/_mintlify/api/og?division=Core+components&appearance=system&title=Short-term+memory&logoLight=https%3A%2F%2Fmintcdn.com%2Flangchain-5e9cc07a%2FnQm-sjd_MByLhgeW%2Fimages%2Fbrand%2Flangchain-docs-dark-blue.png%3Ffit%3Dmax%26auto%3Dformat%26n%3DnQm-sjd_MByLhgeW%26q%3D85%26s%3D5babf1a1962208fd7eed942fa2432ecb&logoDark=https%3A%2F%2Fmintcdn.com%2Flangchain-5e9cc07a%2FnQm-sjd_MByLhgeW%2Fimages%2Fbrand%2Flangchain-docs-light-blue.png%3Ffit%3Dmax%26auto%3Dformat%26n%3DnQm-sjd_MByLhgeW%26q%3D85%26s%3D0bcd2a1f2599ed228bcedf0f535b45b1&primaryColor=%23161F34&lightColor=%237FC8FF&darkColor=%23006DDD&backgroundLight=%23FFFFFF&backgroundDark=%23030710&w=1200&q=100
twitter:image:width1200
twitter:image:height630

Links:

/llms.txthttps://python.langchain.com/llms.txt
Skip to main contenthttps://python.langchain.com/docs/modules/memory/types/buffer#content-area
RSVP todayhttps://events.langchain.com/ama-series/build-more-with-langsmith/
Docs by LangChain home pagehttps://python.langchain.com/
Ask AIhttps://chat.langchain.com/
GitHubhttps://github.com/langchain-ai
Try LangSmithhttps://smith.langchain.com/
Try LangSmithhttps://smith.langchain.com/
Overviewhttps://python.langchain.com/build-overview
Deep Agentshttps://python.langchain.com/oss/python/deepagents/overview
LangChainhttps://python.langchain.com/oss/python/langchain/overview
LangGraphhttps://python.langchain.com/oss/python/langgraph/overview
Integrationshttps://python.langchain.com/oss/python/integrations/providers/overview
Learnhttps://python.langchain.com/oss/python/learn
Referencehttps://python.langchain.com/oss/python/reference/overview
Contributehttps://python.langchain.com/oss/python/contributing/overview
Overviewhttps://python.langchain.com/oss/python/langchain/overview
Installhttps://python.langchain.com/oss/python/langchain/install
Quickstarthttps://python.langchain.com/oss/python/langchain/quickstart
Changeloghttps://docs.langchain.com/oss/python/releases/changelog
Philosophyhttps://python.langchain.com/oss/python/langchain/philosophy
Agentshttps://python.langchain.com/oss/python/langchain/agents
Modelshttps://python.langchain.com/oss/python/langchain/models
Messageshttps://python.langchain.com/oss/python/langchain/messages
Toolshttps://python.langchain.com/oss/python/langchain/tools
Short-term memoryhttps://python.langchain.com/oss/python/langchain/short-term-memory
Event streaminghttps://python.langchain.com/oss/python/langchain/event-streaming
Streaminghttps://python.langchain.com/oss/python/langchain/streaming
Structured outputhttps://python.langchain.com/oss/python/langchain/structured-output
Overviewhttps://python.langchain.com/oss/python/langchain/middleware/overview
Prebuilt middlewarehttps://python.langchain.com/oss/python/langchain/middleware/built-in
Custom middlewarehttps://python.langchain.com/oss/python/langchain/middleware/custom
Overviewhttps://python.langchain.com/oss/python/langchain/frontend/overview
Guardrailshttps://python.langchain.com/oss/python/langchain/guardrails
Runtimehttps://python.langchain.com/oss/python/langchain/runtime
Context engineeringhttps://python.langchain.com/oss/python/langchain/context-engineering
Model Context Protocol (MCP)https://python.langchain.com/oss/python/langchain/mcp
Human-in-the-loophttps://python.langchain.com/oss/python/langchain/human-in-the-loop
Retrievalhttps://python.langchain.com/oss/python/langchain/retrieval
Long-term memoryhttps://python.langchain.com/oss/python/langchain/long-term-memory
LangSmith Studiohttps://python.langchain.com/oss/python/langchain/studio
Agent Chat UIhttps://python.langchain.com/oss/python/langchain/ui
Deploymenthttps://python.langchain.com/oss/python/langchain/deploy
Observabilityhttps://python.langchain.com/oss/python/langchain/observability
Overviewhttps://python.langchain.com/docs/modules/memory/types/buffer#overview
Usagehttps://python.langchain.com/docs/modules/memory/types/buffer#usage
In productionhttps://python.langchain.com/docs/modules/memory/types/buffer#in-production
Customizing agent memoryhttps://python.langchain.com/docs/modules/memory/types/buffer#customizing-agent-memory
Common patternshttps://python.langchain.com/docs/modules/memory/types/buffer#common-patterns
Trim messageshttps://python.langchain.com/docs/modules/memory/types/buffer#trim-messages
Delete messageshttps://python.langchain.com/docs/modules/memory/types/buffer#delete-messages
Summarize messageshttps://python.langchain.com/docs/modules/memory/types/buffer#summarize-messages
Access memoryhttps://python.langchain.com/docs/modules/memory/types/buffer#access-memory
Toolshttps://python.langchain.com/docs/modules/memory/types/buffer#tools
Read short-term memory in a toolhttps://python.langchain.com/docs/modules/memory/types/buffer#read-short-term-memory-in-a-tool
Write short-term memory from toolshttps://python.langchain.com/docs/modules/memory/types/buffer#write-short-term-memory-from-tools
Prompthttps://python.langchain.com/docs/modules/memory/types/buffer#prompt
Before modelhttps://python.langchain.com/docs/modules/memory/types/buffer#before-model
After modelhttps://python.langchain.com/docs/modules/memory/types/buffer#after-model
Core componentshttps://python.langchain.com/oss/python/langchain/agents
https://python.langchain.com/docs/modules/memory/types/buffer#overview
messageshttps://python.langchain.com/oss/python/langchain/messages
long-term memoryhttps://python.langchain.com/oss/python/langchain/long-term-memory
https://python.langchain.com/docs/modules/memory/types/buffer#usage
https://python.langchain.com/docs/modules/memory/types/buffer#in-production
list of checkpointer librarieshttps://python.langchain.com/oss/python/langgraph/checkpointers#checkpointer-libraries
https://python.langchain.com/docs/modules/memory/types/buffer#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://python.langchain.com/docs/modules/memory/types/buffer#common-patterns
short-term memoryhttps://python.langchain.com/docs/modules/memory/types/buffer#usage
https://python.langchain.com/docs/modules/memory/types/buffer#trim-messages
@before_modelhttps://reference.langchain.com/python/langchain/agents/middleware/types/before_model
https://python.langchain.com/docs/modules/memory/types/buffer#delete-messages
add_messageshttps://reference.langchain.com/python/langgraph/graph/message/add_messages
reducerhttps://python.langchain.com/oss/python/langgraph/graph-api#reducers
AgentStatehttps://reference.langchain.com/python/langchain/agents/middleware/types/AgentState
https://python.langchain.com/docs/modules/memory/types/buffer#summarize-messages
SummarizationMiddlewarehttps://python.langchain.com/oss/python/langchain/middleware#summarization
SummarizationMiddlewarehttps://python.langchain.com/oss/python/langchain/middleware#summarization
https://python.langchain.com/docs/modules/memory/types/buffer#access-memory
https://python.langchain.com/docs/modules/memory/types/buffer#tools
https://python.langchain.com/docs/modules/memory/types/buffer#read-short-term-memory-in-a-tool
https://python.langchain.com/docs/modules/memory/types/buffer#write-short-term-memory-from-tools
https://python.langchain.com/docs/modules/memory/types/buffer#prompt
https://python.langchain.com/docs/modules/memory/types/buffer#before-model
@before_modelhttps://reference.langchain.com/python/langchain/agents/middleware/types/before_model
https://python.langchain.com/docs/modules/memory/types/buffer#after-model
@after_modelhttps://reference.langchain.com/python/langchain/agents/middleware/types/after_model
Connect these docshttps://python.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://python.langchain.com/oss/python/langchain/tools
Event streamingNexthttps://python.langchain.com/oss/python/langchain/event-streaming
Docs by LangChain home pagehttps://python.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.