Stopping Criteria
Last updated
What is Stopping Criteria?
Stopping criteria tell the language model when to stop writing more text. Without them, the model could keep adding words forever, waste time, or spill past the point we care about. Common rules include a maximum number of tokens, a special end-of-sequence token, or a custom string such as “\n\n”. We can also stop when the answer starts to repeat or reaches a score that means it is off topic. Good stopping rules save cost, speed up replies, and avoid nonsense or unsafe content.
Free resources to learn Stopping Criteria
More in stage 13: Agent Loop
Stopping Criteria: common questions
Can I learn Stopping Criteria in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Stopping Criteria in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Stopping Criteria tutorial for beginners?
It is lesson 25 of 101 in the free AI Agents roadmap, in stage 13, Agent Loop. If you are new to AI Agents, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.