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

14 lines
382 B

from swarms import Agent
# Initialize a new agent
agent = Agent(
model_name="gpt-4o-mini", # Specify the LLM
max_loops=1, # Set the number of interactions
interactive=True, # Enable interactive mode for real-time feedback
streaming_on=True,
print_on=False,
)
# Run the agent with a task
agent.run("What are the key benefits of using a multi-agent system?")