From 88de9ccdf8a3041cfccd4463ef309b5e5e20c2b4 Mon Sep 17 00:00:00 2001 From: LeVDuan Date: Mon, 16 Mar 2026 15:24:21 +0900 Subject: [PATCH] docs: add comment explaining why non-search tools are preserved --- .../vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py b/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py index 4e8e6c7994c..d4d8124af40 100644 --- a/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py +++ b/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py @@ -662,6 +662,9 @@ class VertexGeminiConfig(VertexAIBaseConfig, BaseConfig): googleSearchRetrieval = None enterpriseWebSearch = None urlContext = None + # Note: code_execution, computerUse, and googleMaps are NOT search + # tools and CAN coexist with function declarations in separate Tool + # objects, so they are intentionally preserved here. # Function declarations can be grouped together in one Tool if gtool_func_declarations: