Use splitlines when showing system prompt

pull/882/head^2
Pavan Kumar 3 weeks ago
parent 28cd319355
commit ca35a59f02

@ -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")

Loading…
Cancel
Save