genkit
genkit copied to clipboard
[py/vertexai] Add tools to Gemini
The tools are introduced to the core code. Now we need to make Gemini model to work with them.
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.