From ca35a59f02c483f246e96c90298c8b9f36f5d439 Mon Sep 17 00:00:00 2001 From: Pavan Kumar <66913595+ascender1729@users.noreply.github.com> Date: Thu, 12 Jun 2025 20:28:31 +0530 Subject: [PATCH] Use splitlines when showing system prompt --- swarms/structs/interactive_groupchat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarms/structs/interactive_groupchat.py b/swarms/structs/interactive_groupchat.py index c8a9411b..802de393 100644 --- a/swarms/structs/interactive_groupchat.py +++ b/swarms/structs/interactive_groupchat.py @@ -223,7 +223,7 @@ class InteractiveGroupChat: for name, agent in self.agent_map.items(): if isinstance(agent, Agent): print( - f"- @{name}: {agent.system_prompt.split('\n')[0]}" + f"- @{name}: {agent.system_prompt.splitlines()[0]}" ) else: print(f"- @{name}: Custom callable function")