Adding Memory: Enabling Multi‑Turn Conversations in an LLM Agent
This guide demonstrates how to replace a simple message list with a ContextManager that tracks user and assistant turns, estimates token usage, applies a sliding‑window truncation based on a token budget, and provides a single build_for_llm entry point to keep multi‑turn dialogues stable and observable.
