Skip to content

Commit 4ba610e

Browse files
in agent-structure conflict, use agent for combo instr
1 parent 12c8b5e commit 4ba610e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

plurals/deliberation.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,9 @@ def __init__(
330330

331331
def _set_combination_instructions(self) -> None:
332332
"""
333-
Set the combination instructions for agents based on the provided value or the default.
333+
Set the combination instructions for agents based on the provided value or the default. If agents have their own
334+
combination instructions, use those instead.
335+
334336
"""
335337
self.combination_instructions = SmartString(
336338
self.defaults['combination_instructions'].get(
@@ -339,11 +341,9 @@ def _set_combination_instructions(self) -> None:
339341

340342
for agent in self.agents:
341343
if agent.combination_instructions:
342-
warnings.warn(
343-
"Writing over agent's combination instructions with Chain's combination instructions")
344-
else:
345344
pass
346-
agent.combination_instructions = self.combination_instructions
345+
else:
346+
agent.combination_instructions = self.combination_instructions
347347

348348
def _set_agent_task_description(self) -> None:
349349
"""
@@ -636,11 +636,11 @@ def process(self):
636636

637637
# Apply the correct prefix and update both lists
638638
if i == 0:
639-
previous_responses_agent1.append(f"[You]: {response}")
640-
previous_responses_agent2.append(f"[Other]: {response}")
639+
previous_responses_agent1.append(f"[WHAT YOU SAID]: {response}")
640+
previous_responses_agent2.append(f"[WHAT OTHER PARTICIPANT SAID]: {response}")
641641
else:
642-
previous_responses_agent2.append(f"[You]: {response}")
643-
previous_responses_agent1.append(f"[Other]: {response}")
642+
previous_responses_agent2.append(f"[WHAT YOU SAID]: {response}")
643+
previous_responses_agent1.append(f"[WHAT OTHER PARTICIPANT SAID]: {response}")
644644

645645
if self.moderated and self.moderator:
646646
moderated_response = self.moderator._moderate_responses(

0 commit comments

Comments
 (0)