Question 31: AI-500: Designing and Implementing Multi-Agent AI Solutions
You have a Microsoft Foundry agent that handles customer support chats. The agent has two tools named get_contract_terms and calculate_refund. On turns where refunds must be calculated, the agent inconsistently calls the tools. You need to reliably force refund-estimate turns to call calculate_refund. Which request co…
Nội dung câu hỏi
You have a Microsoft Foundry agent that handles customer support chats. The agent has two tools named get_contract_terms and calculate_refund. On turns where refunds must be calculated, the agent inconsistently calls the tools. You need to reliably force refund-estimate turns to call calculate_refund. Which request configuration should you use?
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. tool_choice: {"type": "function", "function": {"name": "calculate_refund"}} — đáp án hiện tại
- B. tool_choice: "auto"
- C. instructions - "Use calculate_refund for refund estimates."
- D. tool_choice: "required"
Answer researched independently against supporting documentation; not a published source answer key. A named function tool_choice forces calculate_refund specifically; required permits either tool. References: https://learn.microsoft.com/en-us/azure/foundry/openai/how-to/function-calling
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.