Former-commit-id: 520a57236e
520a57236e
@ -5,7 +5,7 @@ worker2 = Worker(ai_name="Optimus Prime", openai_api_key="")
collab = DialogueSimulator(
[worker1, worker2],
DialogueSimulator.select_next_speaker
# DialogueSimulator.select_next_speaker
)
collab.run(
@ -5,7 +5,12 @@ class DialogueSimulator:
def __init__(self, agents: List[Worker]):
self.agents = agents
def run(self, max_iters: int, name: str = None, message: str = None):
def run(
self,
max_iters: int,
name: str = None,
message: str = None
):
step = 0
if name and message:
prompt = f"Name {name} and message: {message}"