---
published: true
id: context
title: Context
description: Knowledge captured in João Lopes' learning graph.
tags:
- ai-engineering
- llm
locale: en
resource: https://joaolopes.dev.br/knowledge/concepts/en/context/
created: '2026-03-28'
---

# Context
The input the model receives on a given turn, including the system prompt, conversation history, and tool results from previous turns.

## Definition
Context is everything the model can see when generating a response: the system prompt, conversation history, and tool results accumulated across turns. Each turn adds the model's response and any tool results to the context for the next turn. Context is distinct from context window — context is what is in the window, context window is the size of the window.

## Source
- [Large language model - Wikipedia](https://en.wikipedia.org/wiki/Large_language_model)

## Related
- [Context Window](/concepts/en/context-window.md)
- behavioral-modeling
