agentforge-a2a
A2A (Agent-to-Agent) protocol support for AgentForge: cross-framework agent invocation over HTTP, with bearer / mTLS auth, run_id chain, and budget propagation.
See docs/features/feat-014-a2a-protocol.md
for the design and runbook.
Install
pip install agentforge-a2a
# or, from a scaffolded project:
agentforge add module a2a
Call another agent
from agentforge_a2a import A2APeer, agent_call
peer = A2APeer.from_config({
"name": "fact-checker",
"url": "https://internal.fact-checker.example/a2a",
"auth": {"type": "bearer", "token": "${FACT_CHECKER_TOKEN}"},
})
result = await agent_call(
"fact-checker:verify",
{"claim": "The capital of Australia is Sydney."},
timeout_s=30,
peers={"fact-checker": peer},
)
print(result.output)
Expose this agent
from agentforge import Agent, EnvBearerAuth
from agentforge_a2a import A2AServer
server = A2AServer(
agent=Agent(model="anthropic:claude-sonnet-4-6", strategy="react"),
auth=EnvBearerAuth("A2A_TOKENS"),
endpoints=["review-pr"],
host="0.0.0.0",
port=8080,
)
await server.serve()
Metadata
Release files for agentforge-a2a 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agentforge_a2a-0.4.0.tar.gz | 31.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentforge_a2a-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.5 kB
Release files / agentforge_a2a-0.4.0.tar.gz
| Download URL | agentforge_a2a-0.4.0.tar.gz |
|---|---|
| Size | 31.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
366d55c2578e10da358a8a9e632667b67dc68d7f3f3ffdf16607cc5ad8f79755
|
|
BLAKE2b-256 checksum How to use checksums |
47e956317d10935a802312b29a6a1acd82536d76e7b5b3d4d46f465769444006
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 24, 2026.
Transparency logRelease files / agentforge_a2a-0.4.0-py3-none-any.whl
| Download URL | agentforge_a2a-0.4.0-py3-none-any.whl |
|---|---|
| Size | 25.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b3b5240a0880ac0f9414293f1fab53a010c518e3fbb91961070de4b2af015bc
|
|
BLAKE2b-256 checksum How to use checksums |
c505bbb6f13fd357fee96dbfd8bcdcca60bb3c31879d92ad3328665d1c03fa43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 24, 2026.
Transparency log