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/asb_research.py

18 lines
365 B

import json
from swarms import AutoSwarmBuilder
swarm = AutoSwarmBuilder(
name="My Swarm",
description="My Swarm Description",
verbose=True,
max_loops=1,
execution_type="return-agents",
model_name="gpt-4.1",
)
result = swarm.run(
task="Build a swarm to write a research paper on the topic of AI"
)
print(json.dumps(result, indent=2))