Skip to content

A programming framework for agentic AI

Add author name before their message in Chainlit team sample (#5878)

DavidYu00b69751d88f4e
diff --git a/python/samples/agentchat_chainlit/app_team.py b/python/samples/agentchat_chainlit/app_team.py
index ef47205d5..c9d30aeb6 100644
--- a/python/samples/agentchat_chainlit/app_team.py
+++ b/python/samples/agentchat_chainlit/app_team.py
@@ -79,7 +79,7 @@ async def chat(message: cl.Message) -> None:
# Stream the model client response to the user.
if streaming_response is None:
# Start a new streaming response.
- streaming_response = cl.Message(content="", author=msg.source)
+ streaming_response = cl.Message(content=msg.source + ": ", author=msg.source)
await streaming_response.stream_token(msg.content)
elif streaming_response is not None:
# Done streaming the model client response.