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.
11 lines
288 B
11 lines
288 B
1 year ago
|
from swarms import Orchestrator, Worker
|
||
|
|
||
|
# Instantiate the Orchestrator with 10 agents
|
||
|
orchestrator = Orchestrator(
|
||
|
Worker,
|
||
|
agent_list=[Worker]*10,
|
||
|
task_queue=[]
|
||
|
)
|
||
|
|
||
|
# Agent 1 sends a message to Agent 2
|
||
|
orchestrator.chat(sender_id=1, receiver_id=2, message="Hello, Agent 2!")
|