Câu 40: CCA-F: Claude Certified Architect - Foundations
Your agent uses three tools: get_property_details(property_id) returns data including street address, get_price_history(property_id) returns historical pricing, and get_neighborhood_info(address) returns area statistics. You observe that get_neighborhood_info always requires get_property_details first just to extract…
Nội dung câu hỏi
Your agent uses three tools: get_property_details(property_id) returns data including street address, get_price_history(property_id) returns historical pricing, and get_neighborhood_info(address) returns area statistics. You observe that get_neighborhood_info always requires get_property_details first just to extract the address, even when users specify the property by ID. This creates unnecessary latency and failure coupling – if the first call fails, the neighborhood request also fails. What tool design change best addresses this?
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. Create a lookup_address(property_id) helper tool for retrieving addresses.
- B. Add retry logic and timeout handling to get_property_details.
- C. Change get_neighborhood_info to accept property_id, resolving the address internally. — đáp án hiện tại
- D. Consolidate into a single get_property_with_neighborhood(property_id) tool returning both datasets.
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.