A context window is the maximum amount of tokenized input and related context a language model can consider in one interaction. It determines how much context or memory the model can hold. section 2.4
Choose context capacity according to the task:
- A window below 4,000 tokens is typically enough for simple tasks. section 2.4
- A larger window can become essential when multiple agents converse about one task. section 2.4
- Context-window sizes vary across model architectures and model types. section 2.4
Selecting a model for an agent
For a simple task, a model with a smaller context window may be sufficient. For an agent system in which several agents exchange messages, prioritize a model offering a larger window. section 2.4
Figure 2.11 The important criteria to consider when consuming an LLM
Compare context size with other criteria when selecting an LLM for an agent. section 2.4





















