Can an agent always read a document it is given? Not if the document exceeds the space that remains in the context window. The window is shared: the system prompt and conversation history already occupy part of it. Estimate the document size first, then compare it to what is left. If the estimate exceeds the remaining space, the agent cannot read it in one call.
⬇ Headroom worksheet (2 pages)
Next:
6. Token Pricing



