parent
cd7f347ba5
commit
72d0d60bf8
@ -0,0 +1,14 @@
|
|||||||
|
from swarms import Worker, Orchestrator
|
||||||
|
|
||||||
|
node = Worker(
|
||||||
|
openai_api_key="",
|
||||||
|
ai_name="Optimus Prime",
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# Instantiate the Orchestrator with 10 agents
|
||||||
|
orchestrator = Orchestrator(node, agent_list=[node]*10, task_queue=[])
|
||||||
|
|
||||||
|
# Agent 7 sends a message to Agent 9
|
||||||
|
orchestrator.chat(sender_id=7, receiver_id=9, message="Can you help me with this task?")
|
Loading…
Reference in new issue