You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/hs_interactive.py

25 lines
728 B

from swarms import HierarchicalSwarm, Agent
# Create agents
research_agent = Agent(
agent_name="Research-Analyst", model_name="gpt-4.1", print_on=True
)
analysis_agent = Agent(
agent_name="Data-Analyst", model_name="gpt-4.1", print_on=True
)
# Create swarm with interactive dashboard
swarm = HierarchicalSwarm(
agents=[research_agent, analysis_agent],
max_loops=1,
interactive=True, # Enable the Arasaka dashboard
# director_reasoning_enabled=False,
# director_reasoning_model_name="groq/moonshotai/kimi-k2-instruct",
multi_agent_prompt_improvements=True,
)
# Run swarm (task will be prompted interactively)
result = swarm.run("what are the best nanomachine research papers?")
print(result)