Nothing sent yet.window empty, budget 8,000 tokens
Chapter 1 of 7
What’s in the window
Larkspur’s assistant now answers from documents, calls tools and holds conversations. Each one adds text to what the model reads.
This chapter: What does the model read on each turn, and how much room does each part take?
About this chapter
You will learn
- The parts of a turn: system prompt, tools, history, documents and the question
- That every part, the reply included, shares one token budget
- Which parts are big, counted live
Words you’ll meet
- Context window
- Everything the model reads in one turn, plus the reply it writes. It has a fixed size, counted in tokens.
- Token
- The unit a model reads and is billed in: a word, part of a word or a mark. Counts here come from this site’s own token counter.
- Host
- Larkspur’s own program around the model: it builds each window, calls the model and runs the tools.
- System prompt
- Larkspur’s standing instructions to the model, sent at the top of every turn.
- Tool definition
- A tool’s name, description and the shape of input it expects, sent with every turn so the model knows it can call it.
- Budget
- How many tokens the host lets one turn use. A window over it is refused before the model is called.
Step 1 of 6
Mara Quill asks about free shipping. The model reads one block per turn, its : for now, the and question.
Send it.