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.
15 lines
376 B
15 lines
376 B
1 year ago
|
from swarms import DialogueSimulator, Worker
|
||
|
|
||
1 year ago
|
worker1 = Worker(ai_name="Plinus", openai_api_key="")
|
||
1 year ago
|
worker2 = Worker(ai_name="Optimus Prime", openai_api_key="")
|
||
|
|
||
1 year ago
|
collab = DialogueSimulator(
|
||
|
[worker1, worker2],
|
||
1 year ago
|
# DialogueSimulator.select_next_speaker
|
||
1 year ago
|
)
|
||
|
|
||
|
collab.run(
|
||
|
max_iters = 4,
|
||
|
name = "plinus",
|
||
|
message = "how can we enable multi agent collaboration",
|
||
|
)
|