You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@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.
Activity
didier-durand commentedon May 15, 2025
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
martimfasantos commentedon May 15, 2025
@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.
didier-durand commentedon May 15, 2025
Thanks for the explanations: I now understand your perspective much better.
JerryDaHeLian commentedon May 22, 2025
希望支持vllm 部署的qwen系列大模型服务!
feat!: Add FastAPI JSONRPC Application (#104)