swarms/example.py

17 lines
315 B

from swarms import Agent, OpenAIChat
## Initialize the workflow
agent = Agent(
llm=OpenAIChat(),
max_loops="auto",
autosave=True,
dashboard=False,
streaming_on=True,
verbose=True,
)
# Run the workflow on a task
agent(
"Find a chick fil a equivalent in san francisco in hayes valley"
)