Question 360
The Claude application case reports: A client gets a tool_use stop but the code assumes the assistant completed its final answer. Select TWO: a safe corrective action and an independent acceptance test for this failure. (Select TWO.)
Explanation
Correct Answers
This corrective action targets A client gets a tool_use stop but the code assumes the assistant completed its final answer by applying: Correlate HTTP status, error type, stop_reason, tool ID, and request logs to isolate an API failure before deciding to retry. It addresses: Treating invalid arguments, rate limits, and model-generated outputs as the same failure causes repetitive incidents and misleading fixes.
This evidence independently verifies the intervention for A client gets a tool_use stop but the code assumes the assistant completed its final answer: A fault-injection suite maps each error to an appropriate correction, safe retry or explicit terminal failure.
Incorrect Answers
User-facing latency streaming and fallbacks: A fast model alone does not guarantee a responsive application when tool calls or retrieval silently block progress. That mechanism alone cannot establish Diagnosing claude api and tool protocol errors for this question.
Http status and retry-safe api clients: An API client that retries all failures identically can leak credentials, amplify incidents, and exceed quotas. That may be useful independently, but the missing requirement here is Diagnosing claude api and tool protocol errors.
Evaluation traces and regression debugging: Untraced prompt and tool changes make good-looking demos unreliable and hide a worsening error rate. Here the decisive check is Diagnosing claude api and tool protocol errors, not that separate capability.