CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 44: CCA-F: Claude Certified Architect - Foundations

When implementing your lookup_order MCP tool, the backend sometimes returns errors (e.g., “Order not found” or temporary database failures). What is the correct pattern for communicating these errors back to the agent?

Nội dung câu hỏi

When implementing your lookup_order MCP tool, the backend sometimes returns errors (e.g., “Order not found” or temporary database failures). What is the correct pattern for communicating these errors back to the agent?

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.

  1. A. Throw an exception from the tool handler so the agent framework can catch and log it
  2. B. Return the error message in the tool result content with the isError flag set to true — đáp án hiện tại
  3. C. Log the error server-side and return an empty result to avoid confusing the model
  4. D. Return a success response with a “status” field indicating the error type

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề