Tutorial — Agents
Use the A2A protocol
Tenzro serves Google's Agent-to-Agent (A2A) protocol at
a2a.tenzro.network. Discover agents through the Agent Card, send messages with message/send, and stream task updates via SSE.- Level
- Intermediate
- Time
- ~15 min
- Prerequisites
- curl, jq
- Stack
- JSON-RPC · SSE
01
Fetch the Agent Card
The card lists declared skills, transports, and capability metadata.
curl -s https://a2a.tenzro.network/.well-known/agent.json | jq02
Send a message
The dispatcher accepts JSON-RPC 2.0; message/send delivers one-shot text.
curl -s https://a2a.tenzro.network/a2a -H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"message/send","params":{"to":"did:tenzro:machine:...","text":"hello"}}'03
Dispatch a task
For multi-turn work, use tasks/send — the agent processes asynchronously.
curl -s https://a2a.tenzro.network/a2a -H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tasks/send","params":{"skill":"data-analysis","input":{"prompt":"summarize"}}}'04
Stream updates over SSE
Long-running tasks push events to the /a2a/stream endpoint.
curl -N https://a2a.tenzro.network/a2a/stream?task=<task-id>Related