AI / Google Antigravity Gemini Fundamentals Interview Questions
What is the Antigravity agent and what can it do?
Antigravity (antigravity-preview-05-2026) is Google's general-purpose managed agent released in public preview in May 2026 as part of the Gemini API's Managed Agents feature. It is a fully autonomous agent that runs inside a secure, isolated Google-hosted Linux sandbox container.
What Antigravity can do autonomously:
- Plan and reason - breaks down complex tasks into sub-steps and executes them
- Write and execute code - generates Python/shell code and runs it in the sandbox
- Manage files - creates, reads, modifies, and organises files within its container
- Browse the web - fetches pages, searches for information, and reads online content
- Multi-step execution - chains many tool uses across a long task horizon
from google import genai client = genai.Client() # Using the Antigravity managed agent via the Interactions API interaction = client.interactions.create( model="antigravity-preview-05-2026", input="""Analyse the top 10 Python packages on PyPI by download count. Fetch the data, create a bar chart, and save it as chart.png. Then write a brief summary of what you found.""", ) print(interaction.output_text) # For long-running tasks, use background execution: interaction = client.interactions.create( model="antigravity-preview-05-2026", input="Scrape and analyse a year of release notes from github.com/google/gemini", background=True, # returns immediately; poll for completion ) print(f"Task started: {interaction.id}, status: {interaction.status}") # Poll: result = client.interactions.retrieve(interaction.id) print(result.status) # "pending" | "running" | "completed" | "failed"
| Aspect | Standard Gemini model | Antigravity agent |
|---|---|---|
| Execution | Single model call | Multi-step autonomous execution |
| Code running | Code interpreter tool only | Native execution in Linux sandbox |
| File management | Via tools | Native, persistent within sandbox session |
| Web browsing | Via search grounding | Full browser-level web access |
| Task horizon | Short (one response) | Long (many steps, hours if needed |
More Related questions...