Back
AI summary
Written by AI from the official notes. Check them for exact details.This release adds OpenTelemetry tracing support and improves subagent configurations and type safety.
- Introduced OpenTelemetry tracing for enhanced monitoring and debugging.
- Added declarative subagent configurations for easier static subagent creation.
- Improved type safety in AgentConfig for better developer experience.
- Implemented lifecycle hook routing for better event management.
- Cleaned up public API by hiding internal validation methods.
Why it matters: Developers using Gemini and Antigravity should care for improved monitoring, configuration, and type safety.
Full release notes7 changes
This release introduces native OpenTelemetry tracing support, declarative subagent configurations, improved type safety, and critical robustness and compatibility updates.
- OpenTelemetry Tracing Support: Integrates OpenTelemetry tracing into the SDK to translate session, turn, step, and tool lifecycle events into standard GenAI-compliant semantic spans for advanced monitoring and performance debugging, with custom task-safe active span propagation for tool execution.
- Declarative Subagent Configurations: Added
SubagentConfigandSubagentCapabilitiesintypes.pyto support constructing static subagents with declarative instructions and tools directly. - Type Safety in
AgentConfig: Type-annotated policies, hooks, and triggers parameters onAgentConfigand its subclasses to improve type safety and overall developer experience. - Lifecycle Hook Routing: Shifted core orchestration of
OnSessionStartHook, turn-level hooks (PRE_TURNandPOST_TURN), andOnSessionEndHookto the connection layer, implementing the Python-sideHookRouterfor event routing. - Public API Cleanup: Hid internal validation methods on media and error classes by prefixing them with an underscore (
_validate_mime_typeand_from_pydanticon validation errors). - Historical Step Absorption: Ensured historical step absorption is properly drained during initialization to prevent persistence non-linearity issues in
Conversation. - Python 3.14 Compatibility: Resolved potential name shadowing in the
Conversationclass by renaming the top-level connection module import.