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/examples/multi_agent/swarm_router/heavy_swarm_router_example.py

14 lines
410 B

from swarms import SwarmRouter
router = SwarmRouter(
name="HeavySwarmRouter",
description="A router that can route messages to the appropriate swarm",
max_loops=1,
swarm_type="HeavySwarm",
heavy_swarm_loops_per_agent=1,
heavy_swarm_question_agent_model_name="gpt-4o",
heavy_swarm_worker_model_name="gpt-4o",
)
router.run("What are the best ETFs for the american energy markets?")