Skip to content

Python: Add A2A hosting conversion helpers #6591

Closed

Description

Parent: #6265
Depends on: core hosting state helpers.

Scope

Add python/packages/hosting-a2a/** as an alpha helper package and update the existing A2A hosting samples.

The package owns only the conversion seam between native A2A SDK values and Agent Framework values:

  • a2a_to_run(...) converts an A2A Message to Agent Framework run arguments.
  • a2a_from_run(...) converts an AgentResponse, Message, or streaming AgentResponseUpdate to native A2A Part values.

Application code continues to own the native A2A SDK AgentExecutor, RequestContext, task lifecycle, TaskUpdater, event queues, task stores, artifact IDs, authentication, routes, and deployment. The helper package must not select Starlette, FastAPI, or another web framework.

Done when

  • The two conversion directions support A2A text, URL, raw-byte, and structured-data parts and the corresponding Agent Framework text, URI, and data content.
  • Existing A2A hosting samples use the helpers while keeping native SDK and web-framework code in the application.
  • The package follows new-package typing, testing, documentation, workspace, and lifecycle conventions.
  • Package and sample validation passes.

Activity

  1. added
    python
    on Jun 18, 2026
  2. changed the title [-]Python hosting: A2A channel[/-] on Jun 18, 2026
  3. changed the title [-]Python: Python hosting: A2A channel[/-] on Jun 18, 2026
  4. added a commit that references this issue on Jun 29, 2026
    ee38f7e
  5. changed the title [-]Hosting: A2A channel[/-] on Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

python

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions