-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
35 lines (28 loc) · 1.12 KB
/
main.py
File metadata and controls
35 lines (28 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import asyncio
import argparse
import os
from investment_army.core.orchestrator import Orchestrator
from dotenv import load_dotenv
async def main():
load_dotenv()
parser = argparse.ArgumentParser(description="Investment Army CIA - Capital Investment Agency")
parser.add_argument("--context", type=str, required=True, help="Path to business context directory or file")
parser.add_argument("--investors", type=str, required=True, help="Path to investors website list file")
args = parser.parse_args()
orchestrator = Orchestrator()
await orchestrator.initialize(args.context, args.investors)
print("\n--- Investment Army Operation Started ---")
user_input = None
while True:
try:
await orchestrator.run_cycle(user_input)
user_input = input("\n[NEXT STEP / FEEDBACK] (or 'exit' to quit): ")
if user_input.lower() == 'exit':
break
except KeyboardInterrupt:
break
except Exception as e:
print(f"Error in cycle: {e}")
break
if __name__ == "__main__":
asyncio.run(main())