crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

Can we stream output from crew.kickoff() to chainlit app?

Open rounakskm opened this issue 1 year ago • 6 comments

Hello, I am trying to build an interactive crew using chainlit. Is there any way to stream the output from crew.kickoff() onto chainlit? Also to take human input through the chainlit app for taking next steps etc.

rounakskm avatar Mar 04 '24 04:03 rounakskm

Additionally, how to visualize/show intermediate steps where agents share some info.

PiotrEsse avatar Mar 06 '24 12:03 PiotrEsse

would also love to see this is action

thekizoch avatar Mar 18 '24 22:03 thekizoch

any update on this please...

GauravT95 avatar Apr 10 '24 13:04 GauravT95

Found a more recent article - https://krishankantsinghal.medium.com/supercharge-your-conversational-ai-integrating-chainlit-and-crewai-for-powerful-interactions-ca8a50ec1851

If there are other articles which could be used to stream the intermediate steps in crewai onto chainlit, please comment below.

vishwasnm avatar Jul 17 '24 17:07 vishwasnm

There's a GitHub repo that has attempted this:

https://github.com/AbubakrChan/crewai-business-product-launch

The approach here is to save sys.stdout as a variable and then perform regex to make the stream not look so raw. But I've found this to not be very aesthetically pleasing.

Does the medium article have a GitHub repo link?

tituslhy avatar Jul 29 '24 11:07 tituslhy

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Aug 28 '24 12:08 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Sep 02 '24 12:09 github-actions[bot]

would be great to have crewai return step results in a way that is compatible.

agnivabanerjee avatar Jun 05 '25 18:06 agnivabanerjee