@agentrelationsprotocol/sdk
v0.4.0
Published
TypeScript SDK for the Agent Relations Protocol (ARP). Build agents in minutes — handles Ed25519 signing, verification, DID documents, discovery, handshakes, and idempotency.
Maintainers
Readme
@arp-protocol/sdk
Build ARP (Agent Relations Protocol) agents in minutes. All protocol plumbing -- Ed25519 signing, verification, DID documents, discovery, handshakes, idempotency -- is handled by the library.
Install
npm install @arp-protocol/sdkQuick Start
import { ARPAgent } from '@arp-protocol/sdk';
const agent = new ARPAgent({
name: 'order-processor',
domain: 'agents.mycompany.com',
port: 3141,
dataDir: './data',
});
agent.handle('process-order', {
description: 'Process purchase orders',
schema: { type: 'object' },
responseSchema: { type: 'object' },
}, async (msg) => {
return { orderId: '12345', status: 'confirmed' };
});
agent.listen();License
MIT
