A2A (Agent-to-Agent) protocol client + server for AgentForge
Project description
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
agentforge_a2a-0.2.3.tar.gz
(31.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentforge_a2a-0.2.3.tar.gz.
File metadata
- Download URL: agentforge_a2a-0.2.3.tar.gz
- Upload date:
- Size: 31.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
457397496f6794f9e133bed3f441fb79bc19d6daf7e88e856d89a58ba383a020
|
|
| MD5 |
b57baf0230515d226cae46713952fdb4
|
|
| BLAKE2b-256 |
bb4da7ced7b40072b17135325c0081c47d0f82f684895cd2c5cba371561f8097
|
File details
Details for the file agentforge_a2a-0.2.3-py3-none-any.whl.
File metadata
- Download URL: agentforge_a2a-0.2.3-py3-none-any.whl
- Upload date:
- Size: 25.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
842cff57ed2d385c453440148982e96e2235bba1a150d76b9014ba0f5bfe1623
|
|
| MD5 |
fb52b55df7dceecb5c8bd4672f8f542b
|
|
| BLAKE2b-256 |
b5bf1d7105a3ae8304ae3613da3fe85c2b1fb98cabea9f92b5346b93ae789eb4
|