🐛 [firebase_vertexai] Support google search retrieval grounding tool #16843
Labels
Needs Attention
This issue needs maintainer attention.
platform: all
Issues / PRs which are for all platforms.
plugin: vertexai
label issues for vertexai plugin
type: enhancement
New feature or request
Support google search retrieval grounding tool
Google released grounding with Google Search for the Gemini API. I'd like to be able to simply specify
google_search_retrieval
as the tool name when creating myGenerativeModel
in order to be able to use it. Similar to how it's done in the API docs here:Right now, if I try to set it up, I need to do something like this:
And pass it like this:
But that's not working because
FunctionDeclaration
also expects parameters. I'd like to avoid having to declare a function declaration for it and just be able to pass the namegoogle_search_retrieval
directly somehow.The text was updated successfully, but these errors were encountered: