Skip to content

[Feat]: A2A FastAPI Application #21

@martimfasantos

Description

@martimfasantos

Description

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.

Performance comparison:

Image
reference

Describe the solution you'd like

Adding an official FastAPI server app to the A2A SDK, alongside the existing Starlette option, would:

  • Provide better integration with FastAPI’s dependency injection system.
  • Allow seamless use of FastAPI’s OpenAPI/Swagger documentation.
  • Improve developer experience for those already using FastAPI in their projects.

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

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions