Google Antigravity Python SDK — v0.1.10 Release Notes #159
NTaylorMullen
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The 0.1.10 release introduces support for Gemini Prioritized Inference service tiers, real-time token usage event streaming, stateful context-aware hook decorators, and explicit tool call correlation IDs across hook callbacks. It also standardizes default system instruction merging behavior, fixes WebSocket compaction events, and expands local Gemma model documentation.
🌟 Key Highlights
model_opts = GeminiModelOptions(
service_tier=ServiceTier.PRIORITY,
)
config = LocalAgentConfig(
model=ModelTarget(
name="gemini-3.6-flash",
endpoint=GeminiAPIEndpoint(options=model_opts),
),
)
Context-Aware Hook Decorators: Decorate hook handlers (
@hooks.pre_turn,@hooks.post_tool_call, etc.) that optionally acceptHookContextas a parameter to maintain state and share data across lifecycle callbacks.ActionCompaction Event Emission & Hook: Track context window compaction notifications over WebSockets and intercept them using
@hooks.on_compaction.Standardized System Instructions Strategy: Plain string instructions default to appending to built-in instructions. To override and completely replace built-in instructions, pass
CustomSystemInstructions.📋 Detailed Changes
Features & Enhancements
call_idattributes toToolCall.id,ToolResult.id,ToolExecutionError.call_id, and hook payloads to enable tracing of tool execution steps.UsageUpdateevent streaming so token usage accumulates live during agent execution rather than delaying updates until state transitions.HookContextparameters for stateful hook implementations while preserving backward compatibility for stateless handlers.Running tools 'tool_a', 'tool_b').ReadUrlContentResultandSearchWebResultinconnections.localfor uniform tool result access.Model & Default Changes
CustomSystemInstructions(text=...).max_output_tokensdefault in LiteRT local server configuration from 8,192 to 16,384 tokens to prevent truncation during complex reasoning and generation tasks.Bug Fixes
@hooks.on_compactionhandlers andconversation.compaction_indicestracking to fail; compaction events now emit properly over WebSockets.ConnectionRefusedErrorfailures during test initialization.All reactions