crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

[FEATURE] Streaming response

Open pazevedo-hyland opened this issue 1 year ago • 3 comments

Feature Area

Core functionality

Is your feature request related to a an existing bug? Please link it here.

No

Describe the solution you'd like

For production scenarios we want to be able to display the stream of the agents to the customer. Similar to what langgraph does when you can stream and do a for loop for those chunks.

Anyway we can get a similar thing going? I notice we have some parameters on the LLM for streaming = True but not sure how to retrieve that stream and send it via FastAPI.

Describe alternatives you've considered

custom callback? not sure if this would work

Additional context

No response

Willingness to Contribute

Yes, I'd be happy to submit a pull request

pazevedo-hyland avatar Dec 19 '24 08:12 pazevedo-hyland

I second this, streaming can be utilized to analyze chunks before the task is complete and cancel if it obviously failed to follow instructions. streaming could potentially help reduce costs. custom callback with streaming could make my clients very happy

JaDenis avatar Dec 20 '24 08:12 JaDenis

Agreed. This is important

human058382928 avatar Dec 24 '24 01:12 human058382928

Agree too.

hardfish82 avatar Dec 24 '24 09:12 hardfish82

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 Jan 23 '25 12:01 github-actions[bot]

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

github-actions[bot] avatar Jan 30 '25 12:01 github-actions[bot]

Agree!!!

khoi03 avatar Feb 12 '25 07:02 khoi03

Agree!

itzdamika avatar May 26 '25 05:05 itzdamika