dialogue simulator

Former-commit-id: 67daba80c6e8d53c83ff712cadda286db7ad3f5d
pull/160/head
Kye 2 years ago
parent 18f0bfa688
commit c6481a2f6a

@ -26,6 +26,12 @@ class DialogueSimulator:
#increment time
self._step += 1
def inject(self, name: str, message: str):
for agent in self.agents:
agent.receieve(name, message)
self._step += 1
def step(self) -> tuple[str, str]:
#choose next speaker
speaker_idx = self.select_next_speaker(

Loading…
Cancel
Save