npm @google/genai 2.31.0
v2.31.0

3 hours ago

2.31.0 (2026-10-22)

Features

  • Add store to GenerateContentConfig (Gemini Developer API only) and labels to LiveConnectConfig. (0b52aa5)
  • add base_voice to PromptedVoice in GAOS SDK (d62820b)
  • Add generation_output_config to GenerateContentConfig (e82a75a)
  • Add Live API in-session context updates (send_context_update) and types across GenAI SDKs. (177ee68)
  • include AudioContent, DocumentContent, and VideoContent in FunctionResultSubContent (aeaed4e)
  • sdks: enable fixes.openSingleValueEnumsOct2026 across all SDKs (0059474)
  • update discovery doc (40d6e98)

Bug Fixes

  • genai: raise mid-stream SSE errors and dropped connections consistently across SDKs; add continuation conformance tests (38f6ebc)
  • interactions: sync InteractionSseEventInteractionStatus enum with InteractionStatus (be6aa9f)
  • triggers: fix agent triggers OpenAPI overlays, numeric fields, and SDK patches (0e9031d)

Don't miss a new genai release

NewReleases is sending notifications on new releases.