feat(google): support mixing function tools with Gemini's server-side provider tools (Google Search, etc.)#6016
Open
Dhul-Husni wants to merge 1 commit into
Open
Conversation
… provider tools (Google Search, etc.) on the Gemini 3 Developer API
| tool_behavior: NotGivenOr[types.Behavior] = NOT_GIVEN, | ||
| use_parameters_json_schema: bool = True, | ||
| _only_single_type: bool = False, | ||
| include_provider_tools: bool = True, |
Contributor
There was a problem hiding this comment.
🚩 create_tools_config parameter rename may affect external callers
The create_tools_config function in __all__ had its keyword-only parameter renamed from _only_single_type: bool = False to include_provider_tools: bool = True with inverted semantics. While the underscore prefix on the old name suggests it was internal, its presence in __all__ makes it part of the public API. Any external code calling create_tools_config(_only_single_type=True) would get a TypeError at runtime. The realtime module in this same plugin also uses create_tools_config and should be verified.
Was this helpful? React with 👍 or 👎 to provide feedback.
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
include_server_side_tool_invocationsFixes:
Related:
Evidence
google-mixed-tools-demo.mp4