Câu 14: AI-103: Developing AI Apps and Agents on Azure
You have a Microsoft Foundry project that contains an agent. The agent has a Model Context Protocol (MCP) tool that queries a knowledge base stored in Azure AI Search. Some agent runs return answers from the base model without invoking the knowledge base, which results in responses without grounded citations. You are…
Nội dung câu hỏi
You have a Microsoft Foundry project that contains an agent. The agent has a Model Context Protocol (MCP) tool that queries a knowledge base stored in Azure AI Search. Some agent runs return answers from the base model without invoking the knowledge base, which results in responses without grounded citations. You are provided with the following code snippet that runs the agent. You need to add the correct tool _choice parameter to the code to deterministically force the agent to invoke the MCP tool on each run. What should you add?
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={“required”} — đáp án hiện tại
- B. tool_choice={“auto”}
- C. tool_choice={“type”:“knowledge_base”}
- D. tool_choice ={“type”:“mcp”}
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.