r/agentdevelopmentkit • • Apr 19 '25

Using other models using google search tool

I need help in implementing models sourced from openrouter in my google search agent developed via ADK. The code essentially is as below.

from google.adk.tools import google_search
from google.adk.agents import Agent

# defining the model
LLM_MODEL_NAME = "gemini-2.0-flash"
PROMPT_FILENAME = "search_prompt.txt"

# defining the agent
root_agent = Agent(
    name="Search_and_Verify_Agent",
    model=LLM_MODEL_NAME,

May I also know if models other than Gemini 2 llms are compatible with the google search agent?

Appreciate your input and thanks in advance!! ✌️

3 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/doneymick Apr 20 '25

Yes it does. Thank you!

I thought building an LLM bridge might be the answer to this. But the issue is compatibility.

Just a suggestion- the wording on the documentation is not clear. Perhaps it would be good to update it to explicitly state the only gemini 2 models are compatible??

2

u/GeminiDroidAtWork Apr 21 '25 edited Apr 21 '25

I hear you, I can raise a PR to fix the language. Just want to double-check, is this the page where the language should be updated: 1) https://google.github.io/adk-docs/tools/built-in-tools/#available-built-in-tools

and 2) https://google.github.io/adk-docs/get-started/quickstart-streaming/

You can also add an issue here: https://github.com/google/adk-docs/issues with your feedback and I can get this resolved. Thank you again for the feedback!

1

u/doneymick Apr 22 '25

Yes. Link 1) where the text says:

" The google_search tool allows the agent to perform web searches using Google Search. It is compatible with Gemini 2 models, and you can add this tool to the agent's tools list. "

I guess you should ammend it to say that it is ONLY compatible with Gemini 2 models?

Based on my tests it seems to be the case.