Skip to content

Add an example using autogen-core and FastAPI to create streaming responses #6335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 21, 2025

Conversation

ToryPan
Copy link
Contributor

@ToryPan ToryPan commented Apr 19, 2025

Why are these changes needed?

This PR adds an example demonstrates how to build a streaming chat API with multi-turn conversation history using autogen-core and FastAPI.

Related issue number

Checks

@ToryPan ToryPan closed this Apr 19, 2025
@ToryPan ToryPan reopened this Apr 19, 2025
@ToryPan
Copy link
Contributor Author

ToryPan commented Apr 19, 2025

@ToryPan please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree

@SongChiYoung
Copy link
Contributor

@ToryPan
Cool work!
If you get a chance, could you take a look at my third-party extension project autogen-oaiapi?

I think some of your ideas from this example could really help improve it.
Even just sharing issues or thoughts would be super helpful.

Would love to get your thoughts!

Copy link

codecov bot commented Apr 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.97%. Comparing base (9b0a0bd) to head (952b2bb).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6335   +/-   ##
=======================================
  Coverage   77.97%   77.97%           
=======================================
  Files         214      214           
  Lines       15377    15377           
=======================================
  Hits        11990    11990           
  Misses       3387     3387           
Flag Coverage Δ
unittests 77.97% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ekzhu ekzhu enabled auto-merge (squash) April 21, 2025 23:50
@ekzhu ekzhu merged commit 89d77c7 into microsoft:main Apr 21, 2025
56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants