Spaces:
Sleeping
Sleeping
Upload 4 files
Browse files- agents/analyst.py +9 -0
- agents/critic.py +9 -0
- agents/lobbyist.py +9 -0
- agents/synthesizer.py +9 -0
agents/analyst.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from google.adk.agents import LlmAgent
|
| 2 |
+
|
| 3 |
+
def get_analyst_agent(model, tools):
|
| 4 |
+
return LlmAgent(
|
| 5 |
+
name="Analyst",
|
| 6 |
+
model=model,
|
| 7 |
+
tools=tools,
|
| 8 |
+
instruction="Conduct a comprehensive 360-degree analysis covering: 1. PESTLE Factors (Political, Economic, Social, Technological, Legal, Environmental), 2. Demographic Impact (Rural/Urban, Women, Youth, Farmers), and 3. Economic Indicators (Fiscal, GDP, Jobs). Cite at least 1 specific data point for each major category. Optimize for search efficiency: derive maximum insight from available sources."
|
| 9 |
+
)
|
agents/critic.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from google.adk.agents import LlmAgent
|
| 2 |
+
|
| 3 |
+
def get_critic_agent(model, tools):
|
| 4 |
+
return LlmAgent(
|
| 5 |
+
name="Critic",
|
| 6 |
+
model=model,
|
| 7 |
+
tools=tools,
|
| 8 |
+
instruction="You are a Policy Critic. Provide a critical perspective on the topic. Find flaws, costs, and missing demographics and cite 2 failed examples seperately."
|
| 9 |
+
)
|
agents/lobbyist.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from google.adk.agents import LlmAgent
|
| 2 |
+
|
| 3 |
+
def get_lobbyist_agent(model, tools):
|
| 4 |
+
return LlmAgent(
|
| 5 |
+
name="Lobbyist",
|
| 6 |
+
model=model,
|
| 7 |
+
tools=tools,
|
| 8 |
+
instruction="You are a Strategist. Propose 3 directives based on the analysis and critique. Format each directive strictly as: 1. Directive, 2. Rationale, 3. Actionable Steps. DO NOT include 'Search Queries' or any internal thought process in the final output."
|
| 9 |
+
)
|
agents/synthesizer.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from google.adk.agents import LlmAgent
|
| 2 |
+
|
| 3 |
+
def get_synthesizer_agent(model):
|
| 4 |
+
return LlmAgent(
|
| 5 |
+
name="Synthesizer",
|
| 6 |
+
model=model,
|
| 7 |
+
tools=[],
|
| 8 |
+
instruction="Create a 400-word Executive Summary. Verdict(Pass/Reject with why?), Data, Risks, Roadmap."
|
| 9 |
+
)
|