Former-commit-id: 7d06f8e88a
group-chat
Kye 1 year ago
parent 89f5b31923
commit 6651dad7ac

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