Question 630
A streaming response stops at max_tokens midway through a structured result and the controller accepts it. What evidence or diagnostic detail should the engineer inspect FIRST?
Explanation
Correct Answer
Inspect input token counts, prompt structure, tool-result sizes, max_tokens and truncation events. Context windows and output budgets are finite and tokenization differs from character length; increasing text does not guarantee a better answer. The appropriate response is: Budget input, output, tool results and cached material as tokens rather than characters, and enforce context and output limits for the selected model. Situation: A streaming response stops at max_tokens midway through a structured result and the controller accepts it.
Incorrect Answers
Inspect item independence, batch identifiers, completion deadlines, failed records and total cost. This evidence is useful for Batch scheduling and unit economics but would not isolate the primary failure in this scenario. The decisive check is: Inspect input token counts, prompt structure, tool-result sizes, max_tokens and truncation events. Situation: A streaming response stops at max_tokens midway through a structured result and the controller accepts it.
Inspect benchmark outputs, latency histograms, model release identifiers and expected workload complexity. This evidence is useful for Opus Sonnet and Haiku tradeoffs but would not isolate the primary failure in this scenario. The decisive check is: Inspect input token counts, prompt structure, tool-result sizes, max_tokens and truncation events. Situation: A streaming response stops at max_tokens midway through a structured result and the controller accepts it.
Inspect API key scope, authorization headers, expiry/revocation, secret storage and server logs. This evidence is useful for Authentication headers and secret rotation but would not isolate the primary failure in this scenario. The decisive check is: Inspect input token counts, prompt structure, tool-result sizes, max_tokens and truncation events. Situation: A streaming response stops at max_tokens midway through a structured result and the controller accepts it.

