@@ -330,7 +330,9 @@ def __init__(
330
330
331
331
def _set_combination_instructions (self ) -> None :
332
332
"""
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
+
334
336
"""
335
337
self .combination_instructions = SmartString (
336
338
self .defaults ['combination_instructions' ].get (
@@ -339,11 +341,9 @@ def _set_combination_instructions(self) -> None:
339
341
340
342
for agent in self .agents :
341
343
if agent .combination_instructions :
342
- warnings .warn (
343
- "Writing over agent's combination instructions with Chain's combination instructions" )
344
- else :
345
344
pass
346
- agent .combination_instructions = self .combination_instructions
345
+ else :
346
+ agent .combination_instructions = self .combination_instructions
347
347
348
348
def _set_agent_task_description (self ) -> None :
349
349
"""
@@ -636,11 +636,11 @@ def process(self):
636
636
637
637
# Apply the correct prefix and update both lists
638
638
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 } " )
641
641
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 } " )
644
644
645
645
if self .moderated and self .moderator :
646
646
moderated_response = self .moderator ._moderate_responses (
0 commit comments