MemotivaLLM Engineer Interview Questions: LLM Agents, Tool Use, Multi-Step Reasoning, MCP Protocol

How do you handle agent memory across long conversations?

LLM Engineer Interview Questions: LLM Agents, Tool Use, Multi-Step Reasoning, MCP Protocol

Audio flashcard · 0:21

Nortren·

How do you handle agent memory across long conversations?

0:21

Agent memory strategies include sliding windows that keep only the last N messages, summarization that compresses old turns into a summary, vector retrieval that embeds past turns and recalls relevant ones, and structured memory that stores facts as key-value pairs. Production agents often combine multiple strategies to balance context size, cost, and recall.
python.langchain.com