Skip to content

Conversation

@oOPa
Copy link

@oOPa oOPa commented Dec 21, 2025

Description

Adds support for passing a thinkingConfig option through the Google LiveKit plugin Realtime API so callers can control Gemini’s thinking behavior during response generation. Also updates the Google GenAI SDK dependency to a newer version. This version bump is needed to expose the thinkingConfig field.

I'm introducing this change to be able to disable thinking on realtime modesl because dynamic thinking is enabled by default.

Changes Made

  • Add thinkingConfig to realtime options and session payload in realtime_api.ts.
  • Plumb thinkingConfig from RealtimeModel options into session creation.
  • Bump @google/genai to ^1.34.0 (lockfile updated).

Pre-Review Checklist

  • Build passes: All builds (lint, typecheck, tests) pass locally
  • AI-generated code reviewed: Removed unnecessary comments and ensured code quality
  • Changes explained: All changes are properly documented and justified above
  • Scope appropriate: All changes relate to the PR title, or explanations provided for why they're included
  • Video demo: A small video demo showing changes works as expected and did not break any existing functionality using Agent Playground (if applicable)

Testing

  • Automated tests added/updated (if applicable)
  • All tests pass
  • Make sure both restaurant_agent.ts and realtime_agent.ts work properly (for major changes) N/A but testing using my own agent

Additional Notes


Note to reviewers: Please ensure the pre-review checklist is completed before starting your review.

@changeset-bot
Copy link

changeset-bot bot commented Dec 21, 2025

🦋 Changeset detected

Latest commit: 052f67c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
Name Type
@livekit/agents-plugin-google Major
@livekit/agents Major
@livekit/agents-plugin-anam Major
@livekit/agents-plugin-baseten Major
@livekit/agents-plugin-bey Major
@livekit/agents-plugin-cartesia Major
@livekit/agents-plugin-deepgram Major
@livekit/agents-plugin-elevenlabs Major
@livekit/agents-plugin-inworld Major
@livekit/agents-plugin-livekit Major
@livekit/agents-plugin-neuphonic Major
@livekit/agents-plugin-openai Major
@livekit/agents-plugin-resemble Major
@livekit/agents-plugin-rime Major
@livekit/agents-plugin-silero Major
@livekit/agents-plugins-test Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@CLAassistant
Copy link

CLAassistant commented Dec 21, 2025

CLA assistant check
All committers have signed the CLA.

@oOPa oOPa marked this pull request as ready for review December 21, 2025 22:40
@oOPa oOPa changed the title Enable thinking config gemini realtime pr Enable thinking config gemini realtime Dec 21, 2025
@@ -0,0 +1,5 @@
---
"@livekit/agents-plugin-google": minor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you make it a patch bump?

Copy link
Contributor

@toubatbrian toubatbrian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG! Could you also include a link to a video showing a simple conversation with this change, just to make sure it works properly. Thanks

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.

3 participants