Back
GoogleAntigravity
Async tool execution buffers, memory state persistence, and error handling improvements
AI summary
Written by AI from the official notes. Check them for exact details.This release enhances the SDK with new tools for web search, improved configuration management, and better error handling.
- Built-in Web Search Tool for real-time information retrieval.
- Support for custom environment variables in MCP servers.
- Unified multi-model configuration for better routing and fallback.
- Updated image generation to specify aspect ratio.
- Standardized agent session lifecycle for improved runtime safety.
Why it matters: Developers using Google Gemini and Antigravity should adopt these changes for enhanced functionality and stability.
Full release notes10 changes
This release introduces major architectural refactorings, public API standardizations, and key new capabilities centered on centralizing model configurations to natively support multi-model backends, exposing a new built-in Google Web Search capability, enabling environment variable passing for Model Context Protocol (MCP) servers, and simplifying the agent initialization flow by removing dynamic runtime registrations.
- Built-in Web Search Tool: Exposes the
SEARCH_WEBtool directly within the SDK, enabling agents to leverage Google Search for grounded real-time information retrieval, complete with new developer examples (web_tools.py). - MCP Server Environment Variables: Added support for configuring and passing custom environment variables to launched stdio servers via the new
envfield inMcpStdioServer. - Base URL and HTTP Headers Support: Out-of-the-box support for setting custom base URLs and HTTP headers.
- Image Generation Aspect Ratio: Updated the SDK model config and wrapper to support specifying
aspect_ratiowithin the image creation tool configuration. - Centralized Multi-Model Configuration: Replaces legacy singular
gemini_configoptions with a unified, repeatedmodelscollection onAgentConfigandLocalAgentConfigto support multi-model routing, fallback strategies, and automated selection helpers. - Agent Session Lifecycle & API Standardization: Improves runtime safety by removing dynamic post-initialization hook and trigger registration in favor of session creation-time declarations.
- Top-Level Package Exports: Exposed core SDK constructs (including
Content,Image,Document,Audio,Video,from_file,BuiltinTools, andSystemInstructions) directly under thegoogle.antigravityroot module for easier access. - Hook Base Class Exports: Consolidated the base hooks implementation by exporting
DecideHook,InspectHook, andTransformHookfrom the hooks package root. - Top-Level Policy Package: Created a new top-level policy package to clean up hook and workspace path validation dependencies.
- Relocated Trigger Types: Moved the
FileChangemodel andFileChangeKindenum fromtypes.pyto the specialized triggers package.