Stop reason handling — CCA-F Exam Prep
L2.18|Stop reason handling
1/12
The agent's response just... stopped. Mid-sentence.
A fintech company deployed a customer support agent. For most users it worked perfectly. But about 3% of conversations ended with the agent cutting off mid-response. No error. No crash. The agent just stopped talking.
The team spent two weeks debugging. They checked the model, the prompts, the tools. Everything looked correct. The agent was working -- and then it wasn't.
The bug wasn't in the model or the tools. It was in one line of code they never wrote.
