AI-901 ยท Building agents in Foundry
Which tool fits which job for a Foundry agent?
Giving an agent capabilities: file search over uploaded knowledge, web grounding, code interpreter, function tools and when each is the right fit.
Key points
- File search: answer from documents you uploaded.
- Web search: current public information.
- Code interpreter: run Python for calculations, data work and charts.
- Function calling: the model asks your app to run your own function and you return the result.
- Tools are how an agent gets knowledge and takes actions beyond what the model already knows.
Source: https://learn.microsoft.com/en-us/azure/foundry/agents/concepts/toolbox-overview
Practice questions
Which tool lets an agent answer questions using documents that you uploaded?
- Web search
- Code interpreter
- File search
- Image generation
Show answer
Answer: C. File search
File search retrieves content from your uploaded files. Web search looks at the public internet, and code interpreter executes code.
Which tasks are a good fit for the code interpreter tool?
- Computing statistics from an uploaded CSV file
- Drawing a chart of monthly sales from supplied numbers
- Retrieving today's headlines from public news sites
- Quoting a clause from an uploaded policy document
- Calling your private order system with your credentials
Show answer
Answer: A. Computing statistics from an uploaded CSV file, B. Drawing a chart of monthly sales from supplied numbers
Code interpreter runs Python in a sandbox, so it suits calculations, data transformation and charts. Reading a private handbook is file search, and today's news is web search.
True or false: with function calling, Foundry executes your function code on its servers and hands the result to the model.
Show answer
Answer: False
False. The model only requests the call with arguments; your application runs the function (client-side) and returns the result.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
