Trust Agent Protocol

SDK playground

Exercise @trust-assurance-protocol/sdk the same way an integrator would: register an agent, then get, update, and heartbeat with the TAP-issued agentCode.

In-process mock

No agent in this browser session yet. Start with Register — TAP will return an agentCode to use for Get, Update, and Heartbeat.

tap.registerAgent()

Create an agent. TAP assigns a stable agentCode like ACME-AG-001.

const tap = new TAPClient({ apiKey, companyId });

const agent = await tap.registerAgent({
  agentName: "Procurement Agent",
  agentUrl: "https://agent.example.com",
  agentFramework: "Langchain",
  agentVersion: "1.0.0",
});

// TAP returns agent.agentCode — persist it.

Do not send agentCode. TAP generates it from the organization name.