Make Tool and grounding available in StudioAI library as in VertexAI
Closed this issue · 6 comments
Description of the feature request:
Support for Tool and grounding in google.generativeai
as available in VertexAI:
from vertexai.generative_models import Tool, grounding
What problem are you trying to solve with this feature?
I would like to use grounding function as a tool from StudioAI library in generic LLM base, e.g. langchain.
In particular, be able to make the following call but using google.generativeai
instead of vertexai
Tool.from_google_search_retrieval(ground.GoogleSearchRetrieval())
, which today is possible in vertexai.generative_models
Any other information you'd like to share?
Thanks for making grounding available.
Grounding is available in the Gemini API and AI studio. Refer to this documentation link.
Thanks
Hi, I'm still not 100% sure what you're asking here. You just want to use this syntax to specify google_search_retrieval
?
Tool.from_google_search_retrieval(ground.GoogleSearchRetrieval())
Marking this issue as stale since it has been open for 14 days with no activity. This issue will be closed if no further activity occurs.
This issue was closed because it has been inactive for 28 days. Please post a new issue if you need further assistance. Thanks!