Exam CCAR-F Topic 2 Question 164 Discussion
Actual exam question for Anthropic's CCAR-F exam
Question #: 164
Topic #: 2
Question #: 164
Topic #: 2
Your track_shipment(tracking_id) tool queries an external logistics API that sometimes fails - the API may be temporarily unavailable, the tracking ID may be malformed, or the shipment may not exist. Currently, your tool raises a Python exception when errors occur. Users report the agent gives unhelpful responses like "I'm having trouble with that request" instead of suggesting alternatives such as verifying the tracking number format or checking by order number. How should you handle errors in tool results?
Suggested Answer: A Vote an answer
Structured error output gives the agent enough information to respond usefully. Including the error type, whether the issue is recoverable, and actionable guidance allows the agent to distinguish malformed tracking IDs, missing shipments, and temporary API failures, then suggest the correct next step to the user.
by sandip.samanta.email at Sep 06, 2026, 09:37 AM
0
0
0
10
Comments
m
2026-09-06 21:45:44sandip.samanta.email
2026-09-06 09:37:08- B. Return structured error information as normal tool output including error type, recoverability status, and actionable context for the user.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).