Câu 1: CCA-F: Claude Certified Architect - Foundations
Your send_notification tool calls third-party messaging APIs. When these services time out during delivery, you cannot determine whether the message was actually sent. Currently, the tool returns is_error: true with a generic “Notification failed” message for all timeouts. Production monitoring reveals agents automati…
Nội dung câu hỏi
Your send_notification tool calls third-party messaging APIs. When these services time out during delivery, you cannot determine whether the message was actually sent. Currently, the tool returns is_error: true with a generic “Notification failed” message for all timeouts. Production monitoring reveals agents automatically retry these failures, frequently causing users to receive duplicate notifications. How should you modify the error response?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. Return is_error: true with a structured field retry_safe: true for timeouts, distinguishing them from permanent failures that should not be retried. — đáp án hiện tại
- B. Return is_error: true with a message communicating uncertainty: “Timeout – status unknown. Message may have been sent. Avoid retry.”
- C. Return is_error: true with a message encouraging retry: “Delivery service temporarily unavailable. Please retry the notification.”
- D. Return is_error: true with the original message content echoed back.
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.