nomiqon.agents

nomiqon.agents

Full reference for the agents namespace: create, list, update, pause, terminate.

Runtime

nomiqon.agents.create()

POST/v1/agents
ParameterTypeDefaultDescription
namestringrequiredHuman-readable agent identifier. 1–64 characters.
policyPolicyrequiredSpending policy applied to this agent.
caidobjectoptionalauto-generatedBring-your-own keypair: { publicKey: string }.
metadataobjectoptional{}Key-value string pairs, max 32 entries.
typescriptnomiqon.com
const agent = await nomiqon.agents.create({
  name: "summariser-v2",
  policy: {
    dailyCap:  "5.00",
    totalCap:  "100.00",
    allowlist: ["api.openai.com"],
  },
  metadata: { env: "production", team: "nlp" },
});

nomiqon.agents.list()

GET/v1/agents
typescriptnomiqon.com
const { data, meta } = await nomiqon.agents.list({
  status:   "active",
  limit:    50,
  after:    "ag_cursor...",
  metadata: { team: "nlp" },
});

nomiqon.agents.get()

GET/v1/agents/:id
typescriptnomiqon.com
const agent = await nomiqon.agents.get("ag_01jx...");

nomiqon.agents.update()

PATCH/v1/agents/:id
typescriptnomiqon.com
await nomiqon.agents.update("ag_01jx...", {
  policy: { dailyCap: "20.00", frozen: false },
  metadata: { version: "2.0" },
});

nomiqon.agents.pause() / resume()

typescriptnomiqon.com
await nomiqon.agents.pause("ag_01jx...");
await nomiqon.agents.resume("ag_01jx...");

nomiqon.agents.terminate()

DELETE/v1/agents/:id
typescriptnomiqon.com
await nomiqon.agents.terminate("ag_01jx...");
// Remaining wallet balance is returned to the account treasury.

nomiqon.agents.getSpendHeaders()

typescriptnomiqon.com
const headers = await nomiqon.agents.getSpendHeaders("ag_01jx...");
// {
//   "x-nomiqon-agent-id":    "ag_01jx...",
//   "x-nomiqon-spend-token": "spt_eyJ...",
// }
nomiqon.agents — Nomiqon Docs