Change8

firebase@12.4.0

Breaking Changes
📦 firebase-sdk
1 breaking5 features🐛 2 fixes🔧 4 symbols

Summary

This release promotes Imagen and Gemini Developer APIs to General Availability and introduces the URL context tool. It also includes a breaking change to the Live API's function calling handler to support asynchronous responses.

⚠️ Breaking Changes

  • The functionCallingHandler property in StartAudioConversationOptions now must return a Promise<FunctionResponse> instead of a synchronous value.

Migration Steps

  1. Update any implementations of StartAudioConversationOptions.functionCallingHandler to ensure they return a Promise<FunctionResponse>.

✨ New Features

  • Added sendFunctionResponses method to LiveSession for sending function responses during realtime sessions.
  • Added support for the URL context tool, allowing models to access content from public web URLs.
  • Imagen Generation is now Generally Available (GA).
  • The Gemini Developer API is now Generally Available (GA).
  • Exposed setUserProperties on the internal Analytics instance.

🐛 Bug Fixes

  • Fixed an issue where function responses during audio conversations caused the WebSocket connection to close.
  • Updated SDK to handle empty parts when streaming.

🔧 Affected Symbols

LiveSession.sendFunctionResponsesStartAudioConversationOptions.functionCallingHandlerFunctionResponsesetUserProperties