13/16
Part 6 of 6 · Follow-upsLearn
Agents send their whole history every turn, so tokens grow fast
The follow-up that changes the numbers most is an agent.
# each turn sends everything so far
turns = [2000 + 400 * i for i in range(8)]
print(f"{sum(turns):,} input tokens over 8 turns, against {turns[-1]:,} in the last turn alone")
An agent starts with 2,000 tokens and adds 400 a turn, sending the whole history each time. Over 8 turns, about how many input tokens is that?
Pick one to see what it prints.
Pick an answer above to see the rest