@nooterra/core
v0.1.1
Published
TypeScript SDK for Nooterra registry and coordinator APIs
Readme
@nooterra/core (TypeScript SDK)
Lightweight SDK for the Nooterra registry and coordinator APIs.
Install (local)
npm install @nooterra/coreUsage
import { NooterraClient } from "@nooterra/core";
const client = new NooterraClient({
registryUrl: "https://api.nooterra.ai",
coordinatorUrl: "https://coord.nooterra.ai",
registryApiKey: "YOUR_REGISTRY_KEY",
coordinatorApiKey: "YOUR_COORD_KEY",
});
await client.registerAgent("did:noot:demo", [
{ description: "I provide weather by city" },
]);
const results = await client.discovery("weather");
const taskId = await client.publishTask({ description: "Find weather for SF", budget: 5 });
await client.submitBid(taskId, { agentDid: "did:noot:demo", amount: 4 });
await client.settle(taskId);
await client.feedback(taskId, { agentDid: "did:noot:demo", rating: 0.95 });
const fb = await client.getFeedback(taskId);Exports:
NooterraClientNooterraError- Types for capabilities, discovery results, publish/bid/feedback options.
