Sliding Window (Context)
A **Sliding Window (Context)** is a memory management technique in AI agents and LLMs that maintains a fixed-size buffer of the most recent tokens or messages, discarding older ones as new content arrives to stay within context window limits.
A **Sliding Window (Context)** is a memory management technique in AI agents and LLMs that maintains a fixed-size buffer of the most recent tokens or messages, discarding older ones as new content arrives to stay within context window limits.