-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
51 lines (39 loc) · 1.42 KB
/
main.py
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import os
import sys
from pathlib import Path
from dotenv import load_dotenv
load_dotenv()
# Add src to Python path
SRC_PATH = Path(__file__).parent / "src"
sys.path.append(str(SRC_PATH))
from symposium.core import Symposium, DebateConfig
def main():
# Load environment variables
load_dotenv()
if not os.getenv("OPENAI_API_KEY"):
print("❌ Error: OPENAI_API_KEY not found in environment variables")
return
# Create debate configuration
config = DebateConfig(
topic="Should artificial intelligence be regulated?",
pro_position="AI regulation is necessary for safety and ethical development",
con_position="Regulation would stifle innovation and technological progress",
max_turns=10
)
print("\n🎭 AI SYMPOSIUM")
print("=" * 80)
print("Initializing debate session...")
# Initialize and run debate
try:
symposium = Symposium()
symposium.setup_debate(config)
opening_prompt = """
Welcome to today's debate on AI regulation. We'll explore both the potential
benefits and risks of regulatory frameworks for artificial intelligence
development. Let's begin with opening statements from each side.
"""
result = symposium.run_debate(opening_prompt)
except Exception as e:
print(f"\n❌ Error running debate: {e}")
if __name__ == "__main__":
main()