Skip to content

Commit 27d2bf7

Browse files
Add files via upload
1 parent 5859a29 commit 27d2bf7

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

multi_tool_agent/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import agent

multi_tool_agent/agent.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
from google.adk.agents import LlmAgent
2+
from google.adk.tools import google_search
3+
4+
MODEL = "gemini-2.0-flash-exp"
5+
6+
idea_agent = LlmAgent(
7+
model=MODEL,
8+
name="IdeaAgent",
9+
description="An agent specialized in brainstorming creative and innovative ideas based on user requests.",
10+
instruction="You are an experienced software engineer, Use the tool to brainstorm and reposnd to the user with 3 most relevant and actionable advices based on the user's request",
11+
tools=[google_search],
12+
disallow_transfer_to_peers=True,
13+
)
14+
15+
refiner_agent = LlmAgent(
16+
model=MODEL,
17+
name="RefinerAgent",
18+
description="Reviews provided career advices and selects only those which are actionable and extimated to propel the career of a mew software engineer.",
19+
instruction="Use your tool to review the provided career advices. Respond ONLY with the advices which are actionable and can help the user grow in his/her sfotware development career, If nothing is availabe inform the user.",
20+
tools=[google_search],
21+
disallow_transfer_to_peers=True,
22+
)
23+
24+
root_agent = LlmAgent(
25+
model=MODEL,
26+
name="PlannerAgent",
27+
instruction=f"""
28+
You are a Seasoned software engineer, coordinating specialist agents.
29+
Your goal is to provide relevant and actionable steps and mentorship to new Computer science students and junior engineers.
30+
For each user request, follow the below instructions.
31+
1. First, use "{idea_agent}" to brainstorm ideas based on user request.
32+
2. Then, use "{refiner_agent}" to take those ideas to filter them for the provided query.
33+
3. Present the final, refined list to the user along with the actionable steps.
34+
""",
35+
sub_agents=[idea_agent, refiner_agent],
36+
)

0 commit comments

Comments
 (0)