Back
GoogleAntigravity
Default Gemini 3.7 Flash upgrade, session budget limits, Vertex AI Express Mode, and autonomous behavior modes
AI summary
Written by AI from the official notes. Check them for exact details.The default model has been upgraded to Gemini 3.7 Flash, with new session budget limits and autonomous behavior modes.
- Default model upgraded to gemini-3.7-flash.
- Session budget limits and termination reasons added.
- Vertex AI Express Mode authentication support introduced.
- New autonomous agent behavior mode for streamlined interaction.
- Improved stability for MCP server and subagents.
Why it matters: Developers and AI tool users should care for enhanced functionality and improved stability in their applications.
Full release notes10 changes
The 0.1.11 release updates the default model to gemini-3.7-flash, introduces session-level budget enforcement and turn termination stop reasons, Vertex AI Express Mode authentication, and an autonomous agent behavior setting. It also expands tool hook metadata, resolves string annotation coercion for postponed evaluation, and improves MCP server and subagent stability.
- Default Model Upgrade to Gemini 3.7 Flash: Upgraded the default inference model to
gemini-3.7-flash. - Session Budget Enforcement & Stop Reasons: Added
BudgetConfigto define session-level usage limits (total tokens, turns, and cost) andStopReasonenum (BUDGET_EXCEEDED,TURN_LIMIT,USER_CANCELLED, etc.) to inspect turn termination causes. - Vertex AI Express Mode Support: Added native support for Express Mode authentication via
VertexEndpoint(api_key=...)andLocalAgentConfig(vertex=true, api_key=...), simplifying headless and non-GCP deployments. - Autonomous Agent Behavior Mode: Control the agent's behavior with
AgentBehavior. By default the SDK now has anAgentBehavior.AUTONOMOUSmode (previouslyAgentBehavior.INTERACTIVE) to streamline scripting, background, and headless interaction modes. Override by settingCapabilitiesConfig(agent_behavior=AgentBehavior.INTERACTIVE). - Multi-Interface Hook Registration: Enabled single-instance registration across multiple hook interfaces (
PreToolHook,PostToolHook,PreTurnHook), allowing for cross-functional instrumentation without duplicate invocations. - PreToolArgs Metadata: Exposed
trajectory_idandstep_indexon tool hook payloads for chat thread context tracing. - ToolRunner String Annotation Coercion: When using
from future import annotations, tool argument coercion failed on stringified types; resolved by resolving type annotations viatyping.get_type_hintsbefore type adaptation. - MCP Server Example Port Binding: Ephemeral port race conditions in test and example server startup were resolved by binding directly to port 0.
- Subagent Deadlock Prevention: Handled subagent fatal errors in the localagent executor to prevent deadlocks when subagents terminate abnormally.
- Empty Input Validation: Added input validation to prevent SDK unresponsiveness on empty or whitespace-only prompts.