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/reasoning_agents/reasoning_agent_router_exam.../ire_example.py

12 lines
248 B

from swarms.agents.reasoning_agents import ReasoningAgentRouter
router = ReasoningAgentRouter(
swarm_type="ire",
model_name="gpt-4o-mini",
num_samples=1,
)
result = router.run("Explain photosynthesis in one sentence.")
print(result)