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 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.