Skip to content

feat: add historyConfig support for live connection initial context history seeding#1448

Open
jadfeitrouni wants to merge 1 commit intogoogleapis:mainfrom
jadfeitrouni:feat/add-history-config-to-live-connect
Open

feat: add historyConfig support for live connection initial context history seeding#1448
jadfeitrouni wants to merge 1 commit intogoogleapis:mainfrom
jadfeitrouni:feat/add-history-config-to-live-connect

Conversation

@jadfeitrouni
Copy link
Copy Markdown

Summary

  • Adds HistoryConfig interface with initialHistoryInClientContent option to support seeding initial conversation context via sendClientContent before starting a realtime session
  • Wires up historyConfig in liveConnectConfigToMldev, liveClientSetupToMldev, and the token converters
  • Adds unit test coverage for the Gemini API path
  • Adds sdk-samples/live_history_config.ts example demonstrating the feature

Context

The gemini-3.1-flash-live-preview model does not allow sendClientContent during a session unless initial_history_in_client_content is set in the session config. This option is already supported in the Python SDK but was missing from the JS/TS SDK.

@google-cla
Copy link
Copy Markdown

google-cla bot commented Mar 27, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@jadfeitrouni jadfeitrouni force-pushed the feat/add-history-config-to-live-connect branch from 772dca2 to 41a37bd Compare March 27, 2026 21:13
@jadfeitrouni jadfeitrouni force-pushed the feat/add-history-config-to-live-connect branch from 41a37bd to 6007e2b Compare March 27, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant