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

This commit is contained in:
LeVDuan 2026-03-16 15:24:21 +09:00 • committed by Sameer Kankute
parent 212b249e38
commit 1e79ad69ab
No known key found for this signature in database

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: