File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
core/src/main/java/com/google/adk/tools Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2828import org .slf4j .LoggerFactory ;
2929
3030/**
31- * A built-in tool that is automatically invoked by Gemini 2 models to retrieve search results from
32- * Google Search.
31+ * A built-in tool that is automatically invoked by Gemini 2 and 3 models to retrieve search results
32+ * from Google Search.
3333 *
3434 * <p>This tool operates internally within the model and does not require or perform local code
3535 * execution.
@@ -76,7 +76,7 @@ public Completable processLlmRequest(
7676 updatedToolsBuilder .add (
7777 Tool .builder ().googleSearchRetrieval (GoogleSearchRetrieval .builder ().build ()).build ());
7878 configBuilder .tools (updatedToolsBuilder .build ());
79- } else if (model != null && model .startsWith ("gemini-2" )) {
79+ } else if (model != null && ( model .startsWith ("gemini-2" ) || model . startsWith ( "gemini-3" ) )) {
8080
8181 updatedToolsBuilder .add (Tool .builder ().googleSearch (GoogleSearch .builder ().build ()).build ());
8282 configBuilder .tools (updatedToolsBuilder .build ());
You can’t perform that action at this time.
0 commit comments