← 返回 Skills 市场
nantes

A2a Protocol

作者 Ivan Cetta · GitHub ↗ · v1.0.1
cross-platform ✓ 安全检测通过
875
总下载
0
收藏
4
当前安装
2
版本数
在 OpenClaw 中安装
/install a2a-protocol
功能描述
Agent2Agent (A2A) Protocol implementation - communicate with other AI agents
使用说明 (SKILL.md)

A2A Protocol Skill

Implementation of the Agent2Agent (A2A) Protocol for inter-agent communication.

What it does

  • Agent Discovery via Agent Cards
  • Send Messages to remote agents
  • Task Management (submit, check status, get results)
  • Streaming via Server-Sent Events (SSE)
  • Authentication support (API keys, Bearer tokens)

Installation

# Install Python dependencies
pip install requests sseclient-py

Usage

Register Your Agent

.\a2a.ps1 -Action register -Name "MyAgent" -Description "Research agent" -Capabilities "research,analysis" -Endpoint "https://my-agent.com/a2a"

Get Agent Card

.\a2a.ps1 -Action card -AgentId "uuid-of-agent"

Send Message

.\a2a.ps1 -Action send -ToAgent "target-agent-uuid" -Content "Hello agent!"

Submit Task

.\a2a.ps1 -Action task -ToAgent "target-agent-uuid" -Task "Research quantum computing"

Check Task Status

.\a2a.ps1 -Action status -TaskId "task-uuid"

List Remote Agents

.\a2a.ps1 -Action list -RegistryUrl "https://registry.agentlink.io"

A2A Concepts

  • Agent Card: JSON describing agent capabilities (name, endpoint, methods)
  • Client Agent: Agent that sends tasks
  • Remote Agent: Agent that receives and processes tasks
  • Task: Work request with ID, status, and result
  • Message: Direct communication between agents

API Reference

POST /a2a/agents/register - Register agent
GET  /a2a/agents/{id}    - Get agent info
GET  /a2a/agents/{id}/card - Get Agent Card
POST /a2a/messages       - Send message
POST /a2a/tasks          - Submit task
GET  /a2a/tasks/{id}     - Get task status
GET  /a2a/tasks/{id}/result - Get task result

Examples

Python Usage

from a2a import A2AClient

client = A2AClient("https://remote-agent.com/a2a", api_key="your-key")

# Send message
client.send_message("target-agent-id", "Hello!")

# Submit task
task_id = client.submit_task("target-agent-id", "Do X")
result = client.get_result(task_id)

Requirements

  • Python 3.8+
  • requests library
  • sseclient-py (for streaming)

License

MIT

安全使用建议
This skill's code matches its stated purpose (an HTTP client for an A2A registry) but the docs contain small inconsistencies: examples reference a missing PowerShell script and mention SSE support that the provided Python file does not implement. Before installing or using it: 1) Inspect the a2a_client.py file locally (you already have it) and confirm it behaves as expected. 2) Be cautious about the registry URL you point it at (default is localhost); pointing it at an untrusted remote registry can expose the agent to arbitrary tasks and data exchange. 3) Do not supply sensitive long-lived credentials unless you trust the remote agent network; the api_key is sent as a Bearer token. 4) If you need SSE or PowerShell tooling, request the missing artifacts or use a vetted implementation. If anything feels off, run the client in a sandboxed environment or ask the publisher for source/origin and a signed release.
功能分析
Type: OpenClaw Skill Name: a2a-protocol Version: 1.0.1 The skill bundle implements an Agent2Agent (A2A) Protocol client. The `a2a_client.py` script uses the `requests` library to perform standard HTTP communications (registering agents, sending messages, submitting tasks) to a user-specified registry URL. It uses an API key for authentication via a Bearer token, which is standard practice. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or prompt injection attempts in `SKILL.md`. All network interactions are directly related to the stated purpose of inter-agent communication, with user-provided inputs determining the target endpoints and content.
能力评估
Purpose & Capability
The code (a2a_client.py) implements agent discovery, messaging, tasks and registry interaction over HTTP which matches the skill's stated purpose. Minor mismatch: SKILL.md examples call a PowerShell script (a2a.ps1) that is not included; the shipped implementation is a Python CLI. Metadata references a homepage but source is unknown.
Instruction Scope
Runtime instructions only perform network operations against an A2A registry (default http://localhost:8000). The SKILL.md does not instruct reading of local files, environment secrets, or unrelated system paths. Documentation mentions SSE/streaming and sseclient-py, but the provided Python client does not implement SSE handling.
Install Mechanism
There is no install spec; SKILL.md suggests installing Python packages (requests, sseclient-py). This is a normal, low-risk instruction-only install pattern. The packages referenced are standard public packages; however sseclient-py is suggested but not used in included code.
Credentials
The skill requests no environment variables and only optionally accepts an API key at runtime (used to set a Bearer Authorization header). That is proportionate to a network client; no unrelated credentials or config paths are requested.
Persistence & Privilege
The skill does not request persistent presence (always:false) and does not modify other skills or system settings. It runs as an ordinary client library/CLI.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install a2a-protocol
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /a2a-protocol 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Force rescan - verified working
v1.0.0
Initial release of the a2a-protocol skill. - Implements the Agent2Agent (A2A) Protocol for inter-agent communication. - Supports agent registration, agent discovery (Agent Cards), and listing via remote registries. - Enables sending messages and task management (submit, check status, retrieve results). - Provides streaming task updates via Server-Sent Events (SSE). - Includes authentication support (API keys, Bearer tokens). - Comes with Python and command-line usage instructions.
元数据
Slug a2a-protocol
版本 1.0.1
许可证
累计安装 4
当前安装数 4
历史版本数 2
常见问题

A2a Protocol 是什么?

Agent2Agent (A2A) Protocol implementation - communicate with other AI agents. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 875 次。

如何安装 A2a Protocol?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install a2a-protocol」即可一键安装,无需额外配置。

A2a Protocol 是免费的吗?

是的,A2a Protocol 完全免费(开源免费),可自由下载、安装和使用。

A2a Protocol 支持哪些平台?

A2a Protocol 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 A2a Protocol?

由 Ivan Cetta(@nantes)开发并维护,当前版本 v1.0.1。

💬 留言讨论