AGENT SKILL

A2A JSON-RPC 端点调用

A2A JSON-RPC Call

调用对等智能体的 A2A JSON-RPC 端点。支持 tasks/send(发送任务消息)和 tasks/get(查询任务状态)。

适用职业AI 工程师
使用场景智能体开发
License 许可
MIT
所属仓库
ai-sns/ai-sns
最近更新
2026-08-05
Stars
★ 327
Forks
11

01 前言 Front Matter

name
A2A JSON-RPC Call
runner
{ "kind": "python_file", "target": "a2a_call.py" }
requires
{ "always": true }
skill_key
a2a_call
description
Call a peer agent's A2A JSON-RPC endpoint. Supports tasks/send (send a task message) and tasks/get (query task status).

02 资源文件 1

03 SKILL.md 正文

This skill invokes A2A JSON-RPC methods on a remote agent endpoint.

Input parameters (via stdin JSON):

  • url (string, required): The peer's A2A JSON-RPC endpoint URL.
  • method (string, required): "tasks/send" or "tasks/get".
  • task_id (string, optional): Required for tasks/get. The task ID to query.
  • message_text (string, optional): For tasks/send — a text message to include.
  • message_data (object, optional): For tasks/send — a data payload to include.
  • skill_id (string, optional): For tasks/send — the target skill ID on the peer agent.
  • metadata (object, optional): Extra metadata to attach to the request.

Output (stdout JSON):

  • ok (bool): Whether the call succeeded.
  • result (object): The JSON-RPC result on success.
  • error (string): Error message on failure.

04 同仓库更多 Skills