-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"useSearchGrounding" with Google Gen AI breaks tool calling #4312
Comments
I believe this is a known Google-side API limitation -- enabling search grounding disallowing the use of other tools. I recall seeing it in API docs and observing/documenting it during implementation, but I am not finding it now when looking around. I'll keep this open, please let me know if you either find docs around this or see cases where folks are able to do function/tool-calling with grounding enabled with Google Generative AI via some other route. |
https://discuss.ai.google.dev/t/codeexecution-and-function-calling/58663 Think we should have a console.warn if you enable searchGrounding and also pass in tools. Workaround could be use to generateText with searchGrounding as a tool call. |
Description
Use a basic tool, such as
Then use a prompt such as "test the tools" and observe the console log and the model will respond acknowledging the test.
openai('gpt-4o')
google('gemini-1.5-pro-latest')
{ useSearchGrounding: true }
optionCode example
AI provider
google('gemini-1.5-pro-latest')
Additional context
No response
The text was updated successfully, but these errors were encountered: