Introduction to Gemini Enterprise Agent Platform
Developer-first introduction to Gemini on the Gemini Enterprise Agent Platform using the google-genai SDK. Build real Python apps with multimodal prompts, streaming, thinking mode, safety settings, and structured JSON output. Ends with a capstone merch-desk CLI.
View badge details
About This Course
The first course in a four-level Google AI learning path for Python developers, now hands-on in the Google Antigravity IDE on a Windows 11 lab VM. Go from "never touched Google Cloud" to calling the latest Gemini models on the Gemini Enterprise Agent Platform (formerly Vertex AI) in your own code. You will set up Application Default Credentials against a real GCP project via Workforce Identity Federation, use the unified google-genai Python SDK to call Gemini 3.1 Flash, Gemini 3.1 Pro, and Gemini 2.5 Flash-Lite, and build five increasingly realistic Nimbus Outfitters applications your first Gemini "hello world", a service-accounts and ADC deep dive, a review summarizer, a product-photo describer with multimodal inputs, a policy-aware copy drafter using System Instructions and safety settings, and a capstone merch-desk assistant that combines everything. Every hands-on lab runs end-to-end in the Antigravity IDE: sign into Antigravity via federated identity, open the pre-staged starter folder, write (or ask the integrated agent to write) your Python code, run it from the Antigravity IDE's integrated PowerShell terminal. The six teaching lessons between the hands-on labs cover the Gemini SDK concepts auth, prompting, chat, multimodal, safety, system instructions so you understand what the code you are writing actually does. By the end of the course you will be able to initialize a google-genai client against the Gemini Enterprise Agent Platform, send text and multimodal prompts to Gemini, read usage metadata and finish reasons, pick the right Gemini model for a given task, apply safety settings and system instructions, and reason confidently about ADC, Service Accounts, and Workforce Identity Federation for production work.
Course Curriculum
12 Lessons
Google Cloud AI — The Lay of the Land
Agent-led tour of Google Cloud's AI stack. Orient on the Gemini Enterprise Agent Platform (formerly Vertex AI, rebranded at Google Cloud Next '26), the Gemini 3.1 model family, regional availability, pricing tiers, and the platform console. Set the scene for the Nimbus Outfitters capstone that runs throughout Google AI 100.
Your First Gemini API Call - Lab Exercises
Note: This lab pre-provisions a Windows 11 VM and leases a Google Cloud project at start — allow up to 12 minutes for the environment to become ready before beginning the exercises.
Make your first Gemini call from Python using the unified google-genai SDK pointed at the Gemini Enterprise Agent Platform. You will sign into Antigravity on the Windows VM, open the pre-staged hello-gemini starter in the Antigravity IDE, enable the Agent Platform API, configure Application Default Credentials for the lab's workforce identity, complete three TODOs in main.py, and compare the Gemini 3.1 Flash, Gemini 3.1 Pro, and Gemini 2.5 Flash-Lite models on a real Nimbus Outfitters merch-desk prompt. By the end of the lab you will be able to initialize a google-genai client against Gemini Enterprise Agent Platform, send a prompt, read the response's usage metadata and finish reason, and reason about which Gemini model fits a given task.
Auth, Projects, and gcloud
Agent-led teaching on GCP identity for AI developers: organization/folder/project hierarchy, IAM bindings vs AWS/Azure, service accounts, Application Default Credentials, Workforce Identity Federation, and the principle of least privilege for the Gemini Enterprise Agent Platform.
Service Accounts & ADC in Practice - Lab Exercises
Note: This lab pre-provisions a Windows 11 VM and leases a Google Cloud project at start — allow up to 12 minutes for the environment to become ready before beginning the exercises.
Put Gemini Enterprise Agent Platform auth into practice on a Windows VM with the Antigravity IDE. You will sign into Antigravity, open the auth-lab starter, inspect a pre-provisioned merch-desk-sa service account with its single least-privilege roles/aiplatform.user binding, run the starter's verify.py under three different credential setups (your workforce user, a service-account key file, keyless impersonation via --impersonate-service-account), deliberately break the auth three ways to recognize DefaultCredentialsError, PermissionDenied, and FailedPrecondition on sight, and finish with a fully key-less posture. By the end of this lab you will be able to pick the right auth pattern for a Gemini workload, read any Gemini Enterprise Agent Platform auth traceback and name the fix in one sentence, and argue why service-account impersonation beats downloaded JSON keys for production.
Text, Chat, and Streaming with Gemini
Agent-led teaching on text generation modes: single-turn vs multi-turn chat, streaming with generate_content_stream, system instructions, temperature/top_p, token accounting, and when to choose each pattern.
Build the Nimbus Review Summarizer - Lab Exercises
Note: This lab pre-provisions a Windows 11 VM and leases a Google Cloud project at start — allow up to 12 minutes for the environment to become ready before beginning the exercises.
Build a Nimbus Outfitters review-summarizer CLI from a Python starter on the Windows VM in the Antigravity IDE. You will sign into Antigravity, open the pre-staged review-summarizer starter, wire up a single-call Gemini summarizer across 20 product reviews, switch the path to live streaming, track per-review token counts, benchmark Gemini 3.1 Flash against Gemini 3.1 Pro and Gemini 2.5 Flash-Lite to pick a production model, and extend the CLI with a multi-turn chat subcommand that holds conversation history across follow-up questions. By the end of the lab you will know when to pick streaming vs non-streaming on the Gemini Enterprise Agent Platform, how to read usage_metadata off both branches, how to defend a model choice to a non-engineering stakeholder with real numbers, and how client.chats.create differs from stateless generate_content calls.
Multimodal with Gemini (Images, PDFs, Audio)
Agent-led teaching on multimodal inputs: Part.from_uri for GCS assets, Part.from_bytes for inline payloads, supported MIME types, image + text interleaving, and structured JSON output with response_schema.
Build the Nimbus Product-Photo Describer - Lab Exercises
Note: This lab pre-provisions a Windows 11 VM and leases a Google Cloud project at start — allow up to 12 minutes for the environment to become ready before beginning the exercises.
Build a Python CLI that feeds Nimbus Outfitters product photos through Gemini on the Gemini Enterprise Agent Platform and produces structured catalog entries. You will sign into Antigravity on the Windows VM, open the pre-staged photo-describer starter, create a regional Cloud Storage bucket in us-central1, upload five sample product photos, call Gemini with Part.from_uri for multimodal input, add JSON Schema–constrained structured output with response_schema, harden the pipeline against non-image inputs with a MIME allowlist, and close the loop by generating brand-new catalog hero images with Gemini 3.1 Flash Image (and compare against Gemini 3.1 Pro Image). By the end of the lab you will be able to compose multimodal contents with mixed image + text Parts, pin Gemini output to a JSON schema, defend a loop against bad inputs, and reason about when to reach for the Pro image-generation tier versus the GA Flash tier.
System Instructions, Safety, and Thinking
Agent-led teaching on prompt engineering for brand-safe copy: system_instruction vs in-prompt framing, Gemini safety categories and thresholds, structured output with Pydantic response_schema, and thinking budgets on reasoning-capable models.
Build the Nimbus Policy-Aware Copy Drafter - Lab Exercises
Note: This lab pre-provisions a Windows 11 VM and leases a Google Cloud project at start — allow up to 12 minutes for the environment to become ready before beginning the exercises.
Wire a two-document system instruction (tone_of_voice.md + content_policy.md) into Gemini via GenerateContentConfig.system_instruction, emit structured CatalogCopy JSON validated with Pydantic, deliberately flip a safety threshold to force a finish_reason=SAFETY block and handle it cleanly, enable thinking mode on gemini-3.1-pro-preview to measure thoughts_token_count on a complex SKU, and harden the system instruction against prompt-injection briefs. You will work in the Antigravity IDE on a Windows 11 VM with the pre-staged copy-drafter starter already on disk. By the end of this lab you will be able to compose multi-document system instructions, enforce structured output with a Pydantic schema, read safety ratings off a blocked response, make a cost-vs-quality judgment on thinking mode, and audit your output for policy leakage.
Capstone Briefing — The Merch-Desk Assistant
Agent-led capstone briefing. Reviews the Nimbus Outfitters story, recaps all six deliverables, introduces the AssistBundle Pydantic schema, walks through acceptance criteria, and previews the build.
Build the Merch-Desk Assistant (Capstone) - Lab Exercises
Note: This lab pre-provisions a Windows 11 VM and leases a Google Cloud project at start — allow up to 12 minutes for the environment to become ready before beginning the exercises.
The course capstone: ship nimbus-assist, a multimodal CLI that reads a product photo and a spec PDF from Cloud Storage and emits a schema-validated AssistBundle (summary + catalog entry + 3 FAQs) via Gemini on the Gemini Enterprise Agent Platform. You will sign into Antigravity on the Windows VM, open the pre-staged google-ai-100-capstone starter in the Antigravity IDE, provision a Cloud Storage bucket for the SKU assets, build a three-part multimodal prompt, validate output against a Pydantic schema, batch across all five SKUs comparing Gemini 3.1 Flash to Gemini 3.1 Pro, and finally harden the pipeline with retries and a safety fallback. By the end of the capstone you will have an end-to-end content pipeline — bucketed assets, one validated multimodal call, batch comparison with a written recommendation, production-grade retry + safety handling — that you could run against a real Nimbus catalog.