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.2.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.2.tar.gz.
File metadata
- Download URL: agentforge_a2a-0.2.2.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 |
bd1c69922fc6de5cc2d9586580552e1117738a3b17ef2f1cd62bc7c00200760a
|
|
| MD5 |
9edf22b44ea50b1d8fb70c25874c8433
|
|
| BLAKE2b-256 |
2aebf739ca3ae63573462af3cf12ce868da1c3190140876aecf2f88d29d21087
|
File details
Details for the file agentforge_a2a-0.2.2-py3-none-any.whl.
File metadata
- Download URL: agentforge_a2a-0.2.2-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 |
73b0b735a8d842b633c1988e6c2fe8302a0fef59cd6c5e2c5c4a523cfb4dc92a
|
|
| MD5 |
c24960ef364799ce2a1509a2fc81b7f8
|
|
| BLAKE2b-256 |
df0c62be77e4acc295539413a605bd25930a69756c4b9d351672744c98378062
|