-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Description
Feature Area
Core functionality
Is your feature request related to a an existing bug? Please link it here.
Subject: How to Integrate CrewAI with FastAPI for Streaming Output
Description:
Hello CrewAI team!
First, thank you for this amazing framework! I'm currently working on integrating CrewAI with a FastAPI backend and I need to implement streaming output for the AI responses.
My Use Case:
- I want to create a FastAPI endpoint that uses CrewAI agents/crews
- Instead of waiting for the complete response, I need to stream the output progressively to the frontend
- This is crucial for better user experience with longer-running tasks
What I've Tried:
I've looked through the documentation and examples but couldn't find specific guidance on:
- How to properly handle CrewAI with async FastAPI
- How to access intermediate results or stream output chunks
- Best practices for integration with web frameworks
Questions:
- What would be the recommended approach to integrate CrewAI with FastAPI for real-time streaming?
- Are there any examples of web framework integrations planned?
I would greatly appreciate any guidance, code examples, or pointers to relevant documentation. Thank you for your time and contribution to the AI community!
Describe the solution you'd like
Subject: How to Integrate CrewAI with FastAPI for Streaming Output
Description:
Hello CrewAI team!
First, thank you for this amazing framework! I'm currently working on integrating CrewAI with a FastAPI backend and I need to implement streaming output for the AI responses.
My Use Case:
- I want to create a FastAPI endpoint that uses CrewAI agents/crews
- Instead of waiting for the complete response, I need to stream the output progressively to the frontend
- This is crucial for better user experience with longer-running tasks
What I've Tried:
I've looked through the documentation and examples but couldn't find specific guidance on:
- How to properly handle CrewAI with async FastAPI
- How to access intermediate results or stream output chunks
- Best practices for integration with web frameworks
Questions:
- What would be the recommended approach to integrate CrewAI with FastAPI for real-time streaming?
- Are there any examples of web framework integrations planned?
I would greatly appreciate any guidance, code examples, or pointers to relevant documentation. Thank you for your time and contribution to the AI community!
Describe alternatives you've considered
No response
Additional context
No response
Willingness to Contribute
Yes, I'd be happy to submit a pull request