feat: add gemini interactions native tools - #597
Open
ADabbler wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add native Google Search, Code Execution, and URL Context support to Gemini Interactions, together with a protocol-specific model-capabilities preset and option controls.
Before this change:
The Interactions adapter previously serialized function tools from
GenerateInput.Toolswithout merging provider-hosted tools from the filtered model options. The frontend also identified catalog entries by tool key and type alone, which was insufficient for tools that have protocol-specific payloads.This change uses the shared tool-declaration pipeline to merge native and function tools, registers protocol-specific Interactions tool definitions, and keeps Generate Content and Interactions payloads separate. It also adds the Interactions preset, option allowlist updates, migration handling for previous default allowlists, and localized parameter labels and descriptions.
Change type
Affected areas
Verification
pnpm checkpnpm testpnpm buildgit diff --checkScreenshots, API examples, or logs
Configuration, migration, and compatibility notes
gemini_interactionsmodel capability preset; the existing protocol and endpoint routing are unchanged.generation_config.thinking_summariesto the default Interactions option allowlist.generationConfig.thinkingConfig.includeThoughtsandgenerationConfig.thinkingConfig.thinkingLevelto the default Generate Content option allowlist.Documentation
Security and privacy
Checklist
.pycfiles,.envfiles, and local storage data are not committed.