from swarms import Agent, DebateWithJudge
# Create specialized Pro agent
pro_agent = Agent(
agent_name="Innovation-Advocate",
system_prompt=(
"You are a technology policy expert arguing for innovation and minimal regulation. "
"You present arguments focusing on economic growth, technological competitiveness, "
"and the risks of over-regulation stifling progress."
),
model_name="gpt-5.4",
max_loops=1,
)
# Create specialized Con agent
con_agent = Agent(
agent_name="Safety-Advocate",
system_prompt=(
"You are a technology policy expert arguing for strong AI safety regulations. "
"You present arguments focusing on public safety, ethical considerations, "
"and the need for government oversight of powerful technologies."
),
model_name="gpt-5.4",
max_loops=1,
)
# Create specialized Judge agent
judge_agent = Agent(
agent_name="Policy-Analyst",
system_prompt=(
"You are an impartial policy analyst evaluating technology regulation debates. "
"You synthesize the strongest arguments from both sides and provide "
"balanced, actionable policy recommendations."
),
model_name="gpt-5.4",
max_loops=1,
)
# Create debate system with custom agents
debate = DebateWithJudge(
agents=[pro_agent, con_agent, judge_agent], # Pass as list
max_loops=3,
verbose=True,
)
result = debate.run("Should AI-generated content require mandatory disclosure labels?")