mgbam commited on
Commit
393bef7
·
verified ·
1 Parent(s): ca4137c

Update agent_manager.py

Browse files
Files changed (1) hide show
  1. agent_manager.py +24 -24
agent_manager.py CHANGED
@@ -1,26 +1,26 @@
1
- from agents.strategy_agent import run_strategy
2
- from agents.ad_agent import run_ads
3
- from agents.copy_agent import run_copy
4
- from agents.email_agent import run_email
5
- from memory.database import log_action
6
 
 
 
 
 
 
 
 
 
7
 
8
- def run_agents(niche, business_type):
9
- summary = {}
10
- # Strategy
11
- strat = run_strategy(niche, business_type)
12
- log_action("StrategyAgent", "generate_strategy", strat)
13
- summary['strategy'] = strat
14
- # Copy
15
- copy = run_copy(strat)
16
- log_action("CopyAgent", "generate_copy", copy)
17
- summary['copy'] = copy
18
- # Ads
19
- ads = run_ads(strat)
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