docs: add comment explaining why non-search tools are preserved

This commit is contained in:
LeVDuan 2026-03-16 15:24:21 +09:00
parent 26092f168b
commit 88de9ccdf8

View file

@ -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: