Agent-to-agent calls
Two agents can call each other through AbstractAI whatever cloud they run on and whoever owns them. Example: company A’s procurement agent on AWS asks company B’s quote agent on Azure.
procurement-agent (AWS, company A) ──▶ AbstractAI /a2a ──▶ quote-agent (Azure, company B) checks access, finds its current address, signs the call, records the hop in the trace- The caller never needs the other agent’s address, which changes on redeploys.
- Access is checked on every call, so revoking takes effect immediately.
- Every hop is a span in a distributed trace.
1. The caller lists who it calls
Section titled “1. The caller lists who it calls”connections: calls: [quote-agent]Deploying adds AGENT_PLATFORM_URL (the platform’s address) and AGENT_PLATFORM_KEY (this agent’s key, stored as a secret).
The key is revoked when the agent’s last deployment is destroyed.
2. The callee’s owner allows the caller
Section titled “2. The callee’s owner allows the caller”Agents in the same workspace can call each other without this step. For another company’s agent, its owner grants access by the caller’s account email — to one agent, or all of them:
agent-platform links quote-agent --allow buyer@company-a.com --from-agent procurement-agentagent-platform links quote-agent # who it calls, who may call it, trafficagent-platform links quote-agent --revoke <id> # the next call gets 403The deployment page has the same controls under Agent-to-agent connections.
3. Make the call
Section titled “3. Make the call”Node, with the SDK (sends the key and continues the current trace):
import { callAgent } from '@srikanth-cmd/agent-platform-observability'const res = await callAgent('quote-agent', '/invoke', { method: 'POST', body: JSON.stringify({ input: '500 bolts' }) })Any language:
POST $AGENT_PLATFORM_URL/a2a/quote-agent/invokeAuthorization: Bearer $AGENT_PLATFORM_KEYtraceparent: 00-<trace id>-<span id>-01The relay forwards the method, path, query, body and headers (except the caller’s Authorization and cookies) and streams the
response back, so SSE works. It answers 401 for a bad key, 403 when the caller isn’t allowed (the message says what the
owner should run), 404 for an unknown agent, 503 when the target isn’t deployed and 502 if it doesn’t answer.
4. The callee checks who called (optional)
Section titled “4. The callee checks who called (optional)”The relay adds x-agent-platform-caller (the calling agent’s name) and, when the callee has connections: too,
x-agent-platform-signature — an HMAC with the callee’s own key:
import { verifyPlatformCall, withRequestTracing } from '@srikanth-cmd/agent-platform-observability'http.createServer(withRequestTracing((req, res) => { const caller = verifyPlatformCall(req) // 'procurement-agent', or null if (!caller) return res.writeHead(403).end() // ...}))Safety between companies
Section titled “Safety between companies”With guardrails on, a request is checked against the called agent’s policy and the response against the
calling agent’s policy. A blocked call gets 403 with x-agent-platform-safety: blocked.