parent
555e3820d9
commit
57cb4a9b0a
@ -0,0 +1,9 @@
|
|||||||
|
from swarms import DialogueSimulator, Worker
|
||||||
|
|
||||||
|
worker1 = Worker(ai_name="Optimus Prime", openai_api_key="")
|
||||||
|
worker2 = Worker(ai_name="Optimus Prime", openai_api_key="")
|
||||||
|
|
||||||
|
collab = DialogueSimulator([worker1, worker2], DialogueSimulator.select_next_speaker)
|
||||||
|
collab.reset()
|
||||||
|
|
||||||
|
collab.start("My name is Plinus and I am a worker", "How are you?")
|
@ -1,7 +0,0 @@
|
|||||||
from swarms import DialogueSimulator, Worker
|
|
||||||
|
|
||||||
worker = Worker(ai_name="Optimus Prime", openai_api_key="")
|
|
||||||
|
|
||||||
collab = DialogueSimulator(worker, DialogueSimulator.select_next_speaker)
|
|
||||||
|
|
||||||
collab.start("My name is Plinus and I am a worker", "How are you?")
|
|
Loading…
Reference in new issue