Update agent_manager.py
Browse files- agent_manager.py +24 -24
agent_manager.py
CHANGED
|
@@ -1,26 +1,26 @@
|
|
| 1 |
-
from agents.strategy_agent import
|
| 2 |
-
from agents.ad_agent import
|
| 3 |
-
from agents.copy_agent import
|
| 4 |
-
from agents.email_agent import
|
| 5 |
-
from memory.database import log_action
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
def
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
log_action("AdAgent", "generate_ads", ads)
|
| 21 |
-
summary['ads'] = ads
|
| 22 |
-
# Email
|
| 23 |
-
emails = run_email(strat)
|
| 24 |
-
log_action("EmailAgent", "generate_emails", emails)
|
| 25 |
-
summary['emails'] = emails
|
| 26 |
-
return summary
|
|
|
|
| 1 |
+
from agents.strategy_agent import StrategyAgent
|
| 2 |
+
from agents.ad_agent import AdAgent
|
| 3 |
+
from agents.copy_agent import CopyAgent
|
| 4 |
+
from agents.email_agent import EmailAgent
|
|
|
|
| 5 |
|
| 6 |
+
class AgentManager:
|
| 7 |
+
def __init__(self, niche: str, business_type: str):
|
| 8 |
+
self.niche = niche
|
| 9 |
+
self.business_type = business_type
|
| 10 |
+
self.strategy_agent = StrategyAgent()
|
| 11 |
+
self.copy_agent = CopyAgent()
|
| 12 |
+
self.ad_agent = AdAgent()
|
| 13 |
+
self.email_agent = EmailAgent()
|
| 14 |
|
| 15 |
+
def run_all(self):
|
| 16 |
+
"""Run each agent in sequence and return a summary dict."""
|
| 17 |
+
summary = {}
|
| 18 |
+
# 1. Strategy
|
| 19 |
+
summary['strategy'] = self.strategy_agent.generate(self.niche, self.business_type)
|
| 20 |
+
# 2. Copy & Landing Page
|
| 21 |
+
summary['copy'] = self.copy_agent.create(self.niche, self.business_type)
|
| 22 |
+
# 3. Ads
|
| 23 |
+
summary['ads'] = self.ad_agent.plan(self.niche, self.business_type)
|
| 24 |
+
# 4. Email Sequence
|
| 25 |
+
summary['emails'] = self.email_agent.sequence(self.niche, self.business_type)
|
| 26 |
+
return summary
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|