Make a note in our examples that there's an issue with Gemini Live + Vertex around using "google_search" alongside other tools

This commit is contained in:
Paul Kompfner
2025-10-06 15:13:05 -04:00
parent a14fb20d15
commit 0b6dd98000

View File

@@ -122,6 +122,9 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
required=["location"],
)
search_tool = {"google_search": {}}
# KNOWN ISSUE: If using GeminiVertexMultimodalLiveLLMService, it appears
# you cannot use the "google_search" tool alongside other tools.
# See https://github.com/googleapis/python-genai/issues/941.
tools = ToolsSchema(
standard_tools=[weather_function, restaurant_function],
custom_tools={AdapterType.GEMINI: [search_tool]},