Trust Agent Protocol
Exercise @trust-assurance-protocol/sdk the same way an integrator would: register an agent, then get, update, and heartbeat with the TAP-issued agentCode.
No agent in this browser session yet. Start with Register — TAP will return an agentCode to use for Get, Update, and Heartbeat.
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.