pull/58/head
Kye 1 year ago
parent 00dbee3cc6
commit 7d06f8e88a

@ -157,19 +157,19 @@ class GroupChatManager(Worker):
message = self.last_messge(speaker) message = self.last_messge(speaker)
return True, None return True, None
model = GroupChatManager( # model = GroupChatManager(
groupchat=GroupChat( # groupchat=GroupChat(
workers=[ # workers=[
Worker(name="A", system_message="I am worker A"), # Worker(name="A", system_message="I am worker A"),
Worker(name="B", system_message="I am worker B"), # Worker(name="B", system_message="I am worker B"),
Worker(name="C", system_message="I am worker C"), # Worker(name="C", system_message="I am worker C"),
] # ]
) # )
) # )
model.run( # model.run(
messages=[ # messages=[
'A: Hello, I am worker A', # 'A: Hello, I am worker A',
'B: Hello, I am worker B', # 'B: Hello, I am worker B',
] # ]
) # )
Loading…
Cancel
Save