A2A Gateway plugin for Py Code Agent - enables agent-to-agent communication via A2A v0.3.0 protocol
Project description
py-code-agent-a2a-gateway
A2A Gateway plugin for Py Code Agent - enables agent-to-agent communication via A2A v0.3.0 protocol.
Features
- Agent Discovery: Exposes
.well-known/agent-card.jsonfor agent capability discovery - JSON-RPC Communication: Implements A2A v0.3.0 JSON-RPC protocol
- Peer Management: Configure and communicate with peer agents
- SSE Streaming: Supports server-sent events for streaming responses
- Bearer Token Auth: Optional authentication for secure agent communication
Installation
# Install from PyPI
pip install py-code-agent-a2a-gateway
# Or install with extra dependencies
pip install py-code-agent-a2a-gateway[all]
Configuration
In your config.yaml:
plugins:
gateway:
a2a:
host: "0.0.0.0"
port: 18800
name: "MyAgent"
description: "My AI coding agent"
token: ${A2A_TOKEN} # Optional: supports ${ENV_VAR} substitution
skills:
- id: "coding"
name: "Coding Assistant"
peers:
- name: "peer-agent"
agentCardUrl: "http://localhost:18801/.well-known/agent-card.json"
token: ${PEER_TOKEN} # Optional
Tools Provided
| Tool | Description |
|---|---|
a2a_list_peers |
List all configured A2A peer agents |
a2a_send_message |
Send a message to an A2A peer agent |
a2a_get_my_card |
Get this agent's A2A Agent Card |
Endpoints
| Endpoint | Method | Description |
|---|---|---|
/.well-known/agent-card.json |
GET | Agent discovery |
/a2a/jsonrpc |
POST | JSON-RPC message handling |
/health |
GET | Health check |
A2A Protocol
This plugin implements the A2A Protocol v0.3.0:
- Agent Card: Standardized agent capability description
- JSON-RPC: Message passing between agents
- Streaming: SSE support for streaming responses
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
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 py_code_agent_a2a_gateway-0.1.0.tar.gz.
File metadata
- Download URL: py_code_agent_a2a_gateway-0.1.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb0c7ef263d200493d92a349a4aa4754b1ce789c93c96b61900d74afd5f22b43
|
|
| MD5 |
0cf1efe5de6c90cdb196ddc5690c205c
|
|
| BLAKE2b-256 |
92bb781e9af75f3d20208875a3d214a735d9f55b230c65e30ca3ffbf69d73f21
|
File details
Details for the file py_code_agent_a2a_gateway-0.1.0-py3-none-any.whl.
File metadata
- Download URL: py_code_agent_a2a_gateway-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
364084048dc7143fc3e05dbfe8c1708859961a34a85f95a023dcfa8383c76429
|
|
| MD5 |
b914975168694f2150068882e86fab6f
|
|
| BLAKE2b-256 |
0f71bf2ba1de2fe9de76800b64afcd9877cf9f6e8faffb8e6acf9eef0961c199
|