Running Suites in Standard Mode allows you to create groupings of agents that are running in standard mode. This is useful for prototyping.
Using Standard Mode
1
Create Agents
Create a few agents that you want to group together
file.py
from swiftagent import SwiftAgent, SwiftSuiteimport asyncioagent1 =SwiftAgent(name='bob', description='Analytical agent capable of synthesizing multiple ideas into a coherent paragraph')agent2 =SwiftAgent(name='alice', description='Creative agent that comes up with ideas')
2
Create a Suite
Create a suite containing the agents
file.py
suite =SwiftSuite(agents=[agent1, agent2])
3
Run the Suite on a task
Run the Suite on a task
file.py
asyncdefmain():await suite.run('Come up with a list of ideas that could be a creative fairy tale, making sure it is a concise and coherent paragraph')asyncio.run(main())