Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

agent-framework-hosting-a2a

A2A conversion helpers for app-owned Agent Framework hosting.

The package deliberately does not choose a web framework or wrap the A2A SDK server lifecycle. It provides two conversion functions:

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

Application code keeps ownership of the A2A SDK's AgentExecutor, RequestContext, TaskUpdater, event queue, task store, routes, task state, artifact IDs, authentication, and deployment.

a2a_from_run(...) preserves content-level metadata on each returned part and flattens completed responses in message order. The application decides how to group those parts into A2A messages or artifacts and owns their message-level metadata and boundaries.

run = a2a_to_run(context.message)
session_id = f"a2a:{context.tenant}:{context.context_id}"
session = await state.get_or_create_session(session_id)
result = await agent.run(
    run["messages"],
    session=session,
    options=run["options"],
)
await state.set_session(session_id, session)
parts = a2a_from_run(result)

# Native A2A SDK application code publishes `parts` with TaskUpdater.

The surrounding A2A application may use Starlette, FastAPI, another ASGI framework, or the SDK's own application builders. These helpers do not care.

Metadata

Release files for agent-framework-hosting-a2a 1.0.0a260721

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agent-framework-hosting-a2a 1.0.0a260721
File Size Uploaded Provenance
agent_framework_hosting_a2a-1.0.0a260721.tar.gz 4.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for agent-framework-hosting-a2a 1.0.0a260721
File Interpreter ABI Platform
agent_framework_hosting_a2a-1.0.0a260721-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / agent_framework_hosting_a2a-1.0.0a260721.tar.gz

Download URL agent_framework_hosting_a2a-1.0.0a260721.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4ae183518f0294df504b8bb13dbe05486345b2b781321a0fd73a8dd1c1ea43f5
BLAKE2b-256 checksum
How to use checksums
9904c11ad0c189072859ff85f2e8d935deae9d76ddb9908f4e8b40e892b22208
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / agent_framework_hosting_a2a-1.0.0a260721-py3-none-any.whl

Download URL agent_framework_hosting_a2a-1.0.0a260721-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72a20f31746e0879b6e85e07b10b3d8d15285bd9e1429d4eb92e29fce9feda34
BLAKE2b-256 checksum
How to use checksums
9fef108bd437c4107963b1231ae55480c2c207470aca7d53583a645db7b743c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for agent-framework-hosting-a2a 1.0.0a260721

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page