Stop sequences are specific strings or tokens that signal the model to stop generating text when encountered. They provide explicit control over where generation should end, beyond the default end-of-sequence token.
Stop sequences are essential for structured output, preventing the model from continuing past the desired response boundary.