Skip to content

Releases: googleapis/python-genai

v2.11.0

Choose a tag to compare

@release-please release-please released this 09 Jul 16:38
d6a08d9

2.11.0 (2026-07-09)

Features

  • Add environment_id in network config (df5f13a)
  • Add response_format and Translation_config in GenerationConfig (8928da3)
  • Add retrieval result step and new fields to maps and search results (d2b19f6)
  • Add Tool.exa_ai_search for Gemini Enterprise API (8928da3)
  • Support Function declarations during Agent Creation (bbeb934)

Bug Fixes

  • Avoid shadowing of built-in list in Python 3.14 (5a14046)
  • Event loop mismatch in GenAI SDK (10df4b1)
  • interactions: Accept both dict and list[dict] for transform (8c7cee3)

Documentation

  • Add Agent Platform MCP example to readme (cb2a2a3)

Code Refactoring

  • interactions: Remove cached_content, presence_penalty, and frequency_penalty; expose safety_settings and labels (ba552f7)

v2.10.0

Choose a tag to compare

@release-please release-please released this 24 Jun 01:12
e41801c

2.10.0 (2026-06-24)

Features

  • Add Agent Platform MCP support to async generate_content_stream (a4772cc)
  • [Interactions] Add ComputerUse.disabled_safety_policies (732368f)
  • [Models] Add ComputerUse.disabled_safety_policies (a359406)
  • Add usage fields for steps (7bb6c72)
  • Add video generation and response format parameters. (ec8f22b)

Documentation

  • Fix typos across docstrings (63ec5bb)

v2.9.0

Choose a tag to compare

@release-please release-please released this 19 Jun 08:05
84aa3ae

2.9.0 (2026-06-19)

Major updates

  • The interactions implementation has been completely replaced. The public api surface is unchanged. (d830f16)

Features

  • Add audioOffset to VoiceActivity (fb785e4)
  • Add gemini-3-flash-preview (gemini-3.1, gemini-3.5, gemini-4 are already mapped) to the local tokenizer map. (749f8a1), closes #1972
  • Add interimInputTranscription to LiveServerContent (fb785e4)
  • Add LanguageAuto, LanguageHints, and adaptationPhrases to AudioTranscriptionConfig (fb785e4)
  • Broaden publisher model path check to support all publishers (5d282e6)
  • Add ServiceTier to UsageMetadata (45b4963)
  • Expose Computer Use API fields (420b5a7)
  • Gemma 4 local tokenizer support (ca97c58)
  • interaction-api: Add presence_penalty, frequency_penalty, and cached_content to models.proto (05f16fe)
  • interaction-api: Rename usage to total_usage in StreamMetadata. (7c331c6)

Bug Fixes

  • Add fallback for aiohttp.readline without max_line_length for backward compatibility because we still want to keep aiohttp as optional dependency (e99ab99), closes #2487
  • Fix header (f8f9749)
  • Keep live music API keys out of websocket urls (#2564) (c754ebf)
  • Make transformers an optional dependency for local tokenizers, also add other dependencies to local-tokenizer-extras. (528926b)
  • Use .model_copy() instead of deprecated .copy() (216369f)

v2.9.0-rc1

Choose a tag to compare

@release-please release-please released this 17 Jun 22:49
04677a8

2.9.0-rc1 (2026-06-17)

Features

  • Add audioOffset to VoiceActivity (fb785e4)
  • Add gemini-3-flash-preview (gemini-3.1, gemini-3.5, gemini-4 are already mapped) to the local tokenizer map. (749f8a1), closes #1972
  • Add interimInputTranscription to LiveServerContent (fb785e4)
  • Add LanguageAuto, LanguageHints, and adaptationPhrases to AudioTranscriptionConfig (fb785e4)
  • Broaden publisher model path check to support all publishers (5d282e6)

Miscellaneous Chores

v2.9.0-rc0

Choose a tag to compare

@release-please release-please released this 16 Jun 05:29
0126d0c

2.9.0-rc0 (2026-06-16)

Major updates

  • The interactions implementation has been completely replaced. The public api surface should be unchanged. (d830f16)

Features

  • Add ServiceTier to UsageMetadata (45b4963)
  • Expose Computer Use API fields (420b5a7)
  • Gemma 4 local tokenizer support (ca97c58)
  • interaction-api: Add presence_penalty, frequency_penalty, and cached_content to models.proto (05f16fe)
  • interaction-api: Rename usage to total_usage in StreamMetadata. (7c331c6)

Bug Fixes

  • Add fallback for aiohttp.readline without max_line_length for backward compatibility because we still want to keep aiohttp as optional dependency (e99ab99), closes #2487
  • Fix header (f8f9749)
  • Keep live music API keys out of websocket urls (#2564) (c754ebf)
  • Make transformers an optional dependency for local tokenizers, also add other dependencies to local-tokenizer-extras. (528926b)
  • Use .model_copy() instead of deprecated .copy() (216369f)

Documentation

  • Announce Automatic Function Calling (AFC) upcoming breaking change warning (4697258)
  • Clarify Live API START/END_SENSITIVITY_HIGH/LOW defaults are different in Gemini Live and Gemini Enterprise Agent Platform Live API (a0ec6ab), closes #2555
  • Regenerate docs for 2.8.0 (93e7ab1)

v2.8.0

Choose a tag to compare

@release-please release-please released this 03 Jun 22:38
76d8859

2.8.0 (2026-06-03)

Features

  • Add Agent Platform MCP support to async generate_content (e3be9af)
  • Add transcription language code. (53ea3f6)
  • Add TranslationConfig for live translation. (4775314)
  • Support ReinforcementTuning in GenAI SDK including ValidateReward API method. (e0854a6)

Bug Fixes

  • Include all fields of a single tool (7b1d498)

Documentation

  • A comment for field enable_widget in message GoogleMaps is changed (74d81dd)
  • A comment for field google_maps_widget_context_token in message GroundingMetadata is changed (74d81dd)
  • Remove codegen_instructions.md for simpler maintenance, Gemini API Skills should be the single source of truth (bfa2a49)
  • Update README.md for model/SDK Changes and direct to Gemini API Skills (47c1a13)
  • Update the docs for 2.7 (bbef98e)

v2.7.0

Choose a tag to compare

@release-please release-please released this 28 May 15:10
5d0dff8

2.7.0 (2026-05-27)

Features

  • Additional computer_use field support for vertex. (b4828fa)
  • interaction-api: Allow "text/csv" as a supported document mime type for Interaction API. (543137b)
  • interaction-api: Enable BigQuery tool in Deep Research config. (5dc17e5)
  • Support Reinforcement Tuning in GenAI SDK (0ead888)

v2.6.0

Choose a tag to compare

@release-please release-please released this 22 May 01:10
a682e6a

2.6.0 (2026-05-21)

Features

  • Add enable_prompt_injection_detection for Computer Use feature for the Gemini API. (b1f632d)
  • Add budget_exceeded status (15443c0)
  • Add gemini-3.5-flash (15443c0)
  • Add new fields (2910346)

Documentation

  • Replace vertexai with enterprise in Client instantiation (c1c6df7)

v2.5.0

Choose a tag to compare

@release-please release-please released this 20 May 18:37
161f8e4

2.5.0 (2026-05-20)

Features

  • Add Gemini 3.5 Flash model to options (706fd02)

v2.4.0

Choose a tag to compare

@release-please release-please released this 18 May 00:05
610059b

2.4.0 (2026-05-17)

Features

  • Support Agent and Environment APIs. (ef20d6b)

Bug Fixes

  • Output_text for turns that don't end with text. (2afdeff)
  • Pass max_line_length to readline() to prevent LineTooLong on large SSE lines with MTLS. (0e8f7bb)