Open Agent School · Public worked example

Context window: meaning and example

Welcome! Take one idea with you today.

The capacity, usually measured in tokens, available for the information a model can use in one request. For many generative models, input and generated output share this budget.

Picture it: Instructions, chat history, retrieved documents, tool results and the next answer must fit the applicable limits.

What is easy to mix up?

A large window does not guarantee reliable use of everything inside it, and is different from permanent memory.

Teaching example by Open Agent School. Source: Anthropic - Context windows.