genkit icon indicating copy to clipboard operation
genkit copied to clipboard

[py/vertexai] Add tools to Gemini

Open Irillit opened this issue 1 year ago • 1 comments

The tools are introduced to the core code. Now we need to make Gemini model to work with them.

Irillit avatar Mar 11 '25 09:03 Irillit

Going through older issues. This is done, though the code moved. The Python vertexai package was tombstoned and Gemini now lives in the google-genai plugin, which serves both the GoogleAI and Vertex backends. Tools are fully wired: GeminiModel._get_tools builds the genai tool definitions from request.tools and _genkit_to_googleai_cfg folds them (plus tool_config) into the GenerateContentConfig (py/packages/genkit-google-genai/src/genkit_google_genai/models/gemini.py:1942, 1351, 2080), and every Gemini registration sets supports.tools=True. Closing as fixed.

cabljac avatar Jul 20 '26 20:07 cabljac