- Glossary
- Stop reason
Glossary term
Stop reason
The field in a response that says why generation stopped: end_turn, max_tokens, stop_sequence, tool_use and others.
Also called stop_reason.
Open lesson 6.3
Stop sequences and max_tokens · Chapter 6, and 2 more lessons below
In plain words
Always check it. "tool_use" means run the tools; "max_tokens" means the answer was cut off.
Taught in
Also in these lessons
Context windowInput tokensOutput tokensPrefillingSoftmaxStructured outputsTokenToken countingtool_use blockVocabulary