Let’s Get Certified
Module 10 / 16 · Google Cloud’s generative AI offerings

Give an agent the smallest tool needed for the task

Choose an API, function or data store and define who can authorize an agent's actions.

Give an agent the smallest tool needed for the task

Work through the decision

A field assistant must transcribe a voice note, read an invoice and check stock. It sometimes proposes a stock adjustment when the user requested a lookup. How should the team design its tools?

Check your reasoning

Use speech recognition for audio and a document extraction API for invoice fields. Expose a read-only function for stock lookup, validate its parameters and enforce permissions in the backend. A write needs a separately approved action. Prototype prompts in Google AI Studio and use Agent Studio when designing a managed tool-using workflow.

Watch the source lesson at 4:02:00

Compare the choices

Use a typed business function
The model proposes a function and arguments; the application validates and executes a permitted action. Return structured results and handle errors.
Use a domain-specific AI API
Choose a prebuilt service for a defined input and transformation, such as Speech-to-Text or Document AI, and verify its output.
Use a governed data store
Connect authorized records through a retrieval tool with identity, freshness and scope controls. It supplies evidence for the answer.
Choose Agent Studio
Use an agent-building environment when the goal includes tools and managed workflows. Google AI Studio is useful for exploring model behavior and prompts.

Match tools to the data

Use Speech-to-Text to transcribe a voice message, Translation for a language change and Document AI for structured invoice fields. A read-only Cloud Run service can expose current inventory. Pass the caller's authority through the workflow and validate every parameter before using it.

Practice the guide skills

  1. Match extensions, functions, data stores and plugins to an external action or information need. Verify where credentials and validation belong. Watch 4:02:00
  2. Map storage to Cloud Storage or databases and an HTTP tool to Cloud Run or an event function. Choose a specialized API for speech recognition or synthesis, text or document translation, document extraction, image or video analysis, or language analysis. Check supported APIs in the Google Cloud API Library. Watch 4:05:39
  3. Use Google AI Studio for model and prompt experiments. Evaluate Agent Studio when the requirement expands into a governed tool-using workflow. Watch 4:19:11

Official objectives for this lesson

Related lesson · Publish a partner API as a managed product

Knowledge check

Give an agent the smallest tool needed for the task quiz

Answer 3 questions. Check each answer for an explanation.