-
Notifications
You must be signed in to change notification settings - Fork 21
[Feat]: A2A FastAPI Application #21
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
Comments
Hi, For my understanding: FastAPI is a layer on top of Starlette. So, what is the purpose / advantage of moving A2A app from Starlette to FastAPI ? Didier |
@didier-durand You're absolutely right that FastAPI is built on top of Starlette. The key benefit here is that FastAPI adds useful (development) features like automatic OpenAPI docs, validation, and easier route extensibility. By exposing the A2A app directly as a FastAPI app, we can take advantage of these features without needing a separate FastAPI wrapper. Otherwise, we'd have to maintain two apps — a FastAPI app that mounts the existing Starlette one (FastAPI docs) — just to get those extras. This change avoids that extra complexity. |
Thanks for the explanations: I now understand your perspective much better. |
Is your feature request related to a problem? Please describe.
Currently, the A2A Google SDK provides server implementations in Starlette and a basic HTTP app, but lacks an official FastAPI integration. FastAPI is a widely adopted, modern Python framework with built-in async support, OpenAPI documentation, and strong performance. Many developers (including myself) prefer FastAPI for its ease of use and feature set, making it a natural fit for Google’s SDK.
Describe the solution you'd like
Adding an official FastAPI server app to the A2A Google SDK, alongside the existing Starlette and HTTP app options, would:
Ideally, this would follow a similar structure to the existing Starlette app but leverage FastAPI’s features.
Describe alternatives you've considered
No response
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: