← Questions

Agent conversation memory: paginated fetch, token budget, eviction

0
SierraCodingLast asked Nov 2026

A coding interview question asked in Sierra's technical phone screen, last asked Nov 2026. It tests pagination, llm context and deque.

You are building the memory of a conversational agent: the layer that loads a conversation's past messages, keeps what goes to the model under its token limit, and decides which older conversations to forget. The screen comes in parts…

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

What it tests

pagination · llm context · deque · hash maps

Your code and the AI tutor open when you unlock this question.