crewAIInc / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
18.98k stars 2.61k forks source link

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

Closed rounakskm closed 6 days ago

rounakskm commented 6 months ago

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.

PiotrEsse commented 6 months ago

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

thekizoch commented 5 months ago

would also love to see this is action

GauravT95 commented 5 months ago

any update on this please...

francisjervis commented 4 months ago

Possibly useful: How to Use Human as Tool with crewai Agents on chainlit UI

vishwasnm commented 1 month ago

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.

tituslhy commented 1 month ago

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?

github-actions[bot] commented 1 week ago

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] commented 6 days ago

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