jargon

Applied AI·The API layer

you treated a truncated response as a complete one, because nothing in your code branched on the finish reason.

Stop reason / finish reason

Also calledfinish reason

Draft summary, pending review

Why generation ended: natural end of turn, max token limit reached, a stop sequence matched, or a tool call was requested. Production code must branch on this field; treating a truncated response as complete is a classic silent bug.