From 616916e7f3f840e5124fbb4ba2c0e9ff9ffcf76e Mon Sep 17 00:00:00 2001 From: aifanatic Date: Tue, 3 Nov 2026 23:41:38 -0600 Subject: [PATCH] Python: Select all other participants for intermediate output in the group chat debate sample Co-Authored-By: Claude Opus 5.5 --- .../orchestrations/group_chat_philosophical_debate.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/samples/03-workflows/orchestrations/group_chat_philosophical_debate.py b/python/samples/03-workflows/orchestrations/group_chat_philosophical_debate.py index 52cd338d329..b0a9380449c 100644 --- a/python/samples/03-workflows/orchestrations/group_chat_philosophical_debate.py +++ b/python/samples/03-workflows/orchestrations/group_chat_philosophical_debate.py @@ -226,9 +226,7 @@ async def main() -> None: GroupChatBuilder( participants=[farmer, developer, teacher, activist, spiritual_leader, artist, immigrant, doctor], termination_condition=lambda messages: sum(1 for msg in messages if msg.role == "assistant") >= 10, - intermediate_output_from=[ - "all", - ], + intermediate_output_from="all_other", orchestrator_agent=moderator, ) .with_termination_condition(lambda messages: sum(1 for msg in messages if msg.role == "assistant") >= 10)