Skip to content

Releases: googleapis/python-genai

v2.31.0

Choose a tag to compare

@release-please release-please released this 14 Oct 23:27
6bbead9

2.31.0 (2026-10-14)

Features

  • interactions: Add gemini-4-argon to Model enum (8554b07)

Bug Fixes

  • Clear continuation state and preserve prompt feedback when continuation hop returns no candidates (a0d809c)
  • Fix the function declaration parser for union types. Fixes #3060 (be32e9e)
  • Fix the grounding metadata merging for automatic continuation in generate content and generate content stream (f1499bb)
  • Make continuation streams retry dropped hops, stop on prompt_feedback, and keep real errors in generate_content (339a929)
  • Match the mTLS endpoint to each transport's SSL context, including plain aiohttp (f8a4693)

v2.30.1

Choose a tag to compare

@release-please release-please released this 13 Oct 14:02
8540d12

2.30.1 (2026-10-13)

Bug Fixes

  • Concatenate output_text across multi-step model responses in a turn (180c345)

v2.30.0

Choose a tag to compare

@release-please release-please released this 13 Oct 00:17
6333b2f

2.30.0 (2026-10-13)

Features

  • Accumulate streaming continuation usage metadata and expose initial_prompt_token_count (b27f3cd)
  • Add continuation_token to the Interactions interaction.status_update event. (02db4c5)
  • Add a CONTINUATION_REQUIRED Interaction status (bf9d6d7)
  • Add billable token counts fields (6a6501c)
  • Add startOffset/endOffset to Transcription and interimTranscriptTimestampEnabled to RealtimeInputConfig (c644a94)
  • Add usage in InteractionStatusUpdate events (56c3a1a)
  • Allow automatic resumption of continuation token for in generate content and generate content stream. Default behavior for this feature is disabled (83e43ea)
  • cli: Update Speakeasy generator to v2.948.0, bump CLI to v0.4.2, and apply CLI overlay fixes (cdcd3dd)
  • Enable automatic continuation token resumption for chats module. (9ebf714)

Bug Fixes

  • Clear intermediate CONTINUATION finish_reason in streaming continuation (8a641d8)
  • Do not record incomplete continuation stream turns in curated chat history (b382e01)
  • gemini-api-cli: Remove unsupported 2.5 and 1.6 models from Interactions model options and CLI examples (fe5fb10)
  • genai: Deduplicate Flash and Omni descriptions in ModelOption (33efaad)
  • interactions: Restore super().model_construct in Interaction model validator (ccd5dd3)
  • python: Discard stale checkpoint token on non-resumable finish reason (f44e8ee)
  • Raise default HTTP timeouts so long-running requests aren't killed client-side (b006b4b)
  • Resume streaming generation from the latest checkpoint continuation token on mid-stream errors or cutoffs (90bb32b)
  • Update EnvironmentConfig.env schema to map keys to EnvVar or string. (3108d8c)
  • Use the mTLS endpoint on the httpx and websocket transports (97d5821)

v2.29.0

Choose a tag to compare

@release-please release-please released this 07 Oct 21:40
e81ca4a

2.29.0 (2026-10-07)

Features

  • Support "allowlist": "disabled" in environment network config. (fa4acc7)
  • Update discovery doc (84bf19c)

Bug Fixes

  • Only log direct AFC warning when functions are present in the config (6e36aaa)

Documentation

  • Refresh docs for 2.28.0 (618f0aa)
  • Update code samples to gemini-flash-latest, gemini-3.1-flash-lite-image, and gemini-3.8-flash-tts (5673494)
  • Update generated SDK docstring examples to use gemini-flash-latest (28e0915)

v2.28.0

Choose a tag to compare

@release-please release-please released this 02 Oct 17:30
6d13650

2.28.0 (2026-10-02)

Features

  • Add lyria-3.5, gemini-omni-1.1-flash, and gemini-omni-flash-preview to Interactions Model enum (1e8c0cc)
  • Support continuation_token in Interactions (d40ca70)

v2.27.0

Choose a tag to compare

@release-please release-please released this 01 Oct 22:10
afd5e0d

2.27.0 (2026-10-01)

Features

  • Support continuation_token in GenerateContent (3931b29)

Documentation

v2.26.0

Choose a tag to compare

@release-please release-please released this 30 Sep 22:17
41b1ea6

2.26.0 (2026-09-30)

Features

  • Add gcs_metrics_uri for exporting tuning job metrics. (b6535e8)
  • Add Gemini 3.8 Flash TTS and Gemini 3.8 Flash Lite TTS models to SDKs (0cad6ca)
  • genai-sdk: Add environments dedicated module and from_environment support (7672ff6)
  • Include labels for LiveClientSetup (4742c9a)
  • Support labels for Gemini API GenerateContent (81ffa26)

Bug Fixes

  • Build a model before reading its field annotations when pruning extra fields (7845acd)
  • cli: Include auto-assigned flag shorthands in --usage schema (2579b94)
  • Ensure Vertex AI interactions client uses default timeout=None instead of 5s. (feef230)
  • Reap aiohttp sessions and auth locks belonging to closed event loops (6d01288)
  • Use CreateAgentInteraction for Trigger.interaction and TriggerCreateParams.interaction (046ccfb)

Documentation

  • Clarify Voice expire_time and store TTL behavior in GAOS SDK (94b371d)
  • overlays: Describe environment and path on GetEnvironmentFiles and pin environment ID in environments get/delete examples (f15d148)
  • Regenerate docs for 1.2.0 (938dd73)

v2.25.0

Choose a tag to compare

@release-please release-please released this 22 Sep 03:06
2faba3c

2.25.0 (2026-09-22)

Features

  • Add sample_audio to Voice in GAOS SDK (a011633)
  • Add Voices API resource to GAOS SDK (c45b94e)
  • Expose SpeechMetadata, VoiceConfig.voice, and SpeechAnnotation in public GenAI SDKs (a6d3243)
  • Support field.value_field syntax for map add_union_value annotations. (ad00721)
  • Update discovery doc (fa91716)
  • Wire voice into sdk (e1d68b4)

Bug Fixes

  • Sanitize path parameter descriptions in GAOS OpenAPI generation (25b0094)

v2.24.0

Choose a tag to compare

@release-please release-please released this 16 Sep 22:11
6669bb6

2.24.0 (2026-09-16)

Features

  • Add credential APIs resource to gaos. (d301255)
  • Add RetrievalCallStep and RetrievalResultStep to interactions schema and SDKs. (9052efd)
  • Implement environments files upload and download across Python and TypeScript SDKs (fc0834d)
  • Wire credential APIs resource to sdk. (bf0d457)

Bug Fixes

  • Do not run functions once the automatic function calling budget is spent (2580638)

Documentation

  • Update GenAI SDK README files to use gemini-flash-latest (1feb999)
  • Update Python Gen AI SDK README for Gemini 3.8 Flash (b88fded)

v2.23.0

Choose a tag to compare

@release-please release-please released this 10 Sep 22:15
e384b55

2.23.0 (2026-09-10)

Features

  • Add from_environment support for environment copying (e6d3168)
  • Support dynamic turn completion via interaction_status in live.py receive() (455df80)

Bug Fixes

  • Remove unused field from FunctionResultDelta (2843079)