Spaces:
Running
Running
エージェントのモデルをgemini-2.0-flashからgemini-2.5-flash-preview-04-17に更新
Browse files
agent.py
CHANGED
@@ -58,7 +58,7 @@ code_execution_agent = LlmAgent(
|
|
58 |
|
59 |
search_agent = Agent(
|
60 |
name="basic_search_agent",
|
61 |
-
model="gemini-2.
|
62 |
description="Agent to answer questions using Google Search.",
|
63 |
instruction="I can answer your questions by searching the internet. Just ask me anything!",
|
64 |
# google_search is a pre-built tool which allows the agent to perform Google searches.
|
|
|
58 |
|
59 |
search_agent = Agent(
|
60 |
name="basic_search_agent",
|
61 |
+
model="gemini-2.5-flash-preview-04-17",
|
62 |
description="Agent to answer questions using Google Search.",
|
63 |
instruction="I can answer your questions by searching the internet. Just ask me anything!",
|
64 |
# google_search is a pre-built tool which allows the agent to perform Google searches.
|
app.py
CHANGED
@@ -60,7 +60,7 @@ code_execution_agent = LlmAgent(
|
|
60 |
|
61 |
search_agent = Agent(
|
62 |
name="basic_search_agent",
|
63 |
-
model="gemini-2.
|
64 |
description="Agent to answer questions using Google Search.",
|
65 |
instruction="I can answer your questions by searching the internet. Just ask me anything!",
|
66 |
# google_search is a pre-built tool which allows the agent to perform Google searches.
|
@@ -480,7 +480,7 @@ async def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
480 |
description = description_text,
|
481 |
instruction = instruction_text,
|
482 |
tools = [
|
483 |
-
|
484 |
agent_tool.AgentTool(agent=coding_agent),
|
485 |
agent_tool.AgentTool(agent=code_execution_agent),
|
486 |
understand_youtube_video,
|
|
|
60 |
|
61 |
search_agent = Agent(
|
62 |
name="basic_search_agent",
|
63 |
+
model="gemini-2.5-flash-preview-04-17",
|
64 |
description="Agent to answer questions using Google Search.",
|
65 |
instruction="I can answer your questions by searching the internet. Just ask me anything!",
|
66 |
# google_search is a pre-built tool which allows the agent to perform Google searches.
|
|
|
480 |
description = description_text,
|
481 |
instruction = instruction_text,
|
482 |
tools = [
|
483 |
+
agent_tool.AgentTool(agent=search_agent),
|
484 |
agent_tool.AgentTool(agent=coding_agent),
|
485 |
agent_tool.AgentTool(agent=code_execution_agent),
|
486 |
understand_youtube_video,
|