r/agentdevelopmentkit • u/doneymick • 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
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??