Bitzu

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

Single choice

Which tool lets an agent answer questions using documents that you uploaded?

  1. Web search
  2. Code interpreter
  3. File search
  4. 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.

Select all that apply

Which tasks are a good fit for the code interpreter tool?

  1. Computing statistics from an uploaded CSV file
  2. Drawing a chart of monthly sales from supplied numbers
  3. Retrieving today's headlines from public news sites
  4. Quoting a clause from an uploaded policy document
  5. 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

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.

Download on the App StoreGet it on Google Play

More AI-901 topics in this module