Skip to content

Framework Adapters

Drop registry knowledge into popular agent frameworks. The TypeScript SDK ships dependency-free adapters that adapt registry results into each framework's native shape — so you get graded, license-checked, veto-respecting retrieval without writing glue.

LangChain

ts
import { UKSRetriever } from '@uks/sdk/langchain';

const retriever = new UKSRetriever();           // public registry by default
const docs = await retriever.getRelevantDocuments('magnesium glycinate sleep');

LlamaIndex

ts
import { UKSReader } from '@uks/sdk/llamaindex';

const reader = new UKSReader();
const documents = await reader.loadData('CoQ10 statin myalgia');

Vercel AI SDK

ts
import { uksTool } from '@uks/sdk/vercel-ai';

const result = await generateText({
  model,
  tools: { uks: uksTool() },                    // exposes registry answer/search as a tool
  prompt: 'What does the evidence say about creatine and cognition?',
});

What you get for free

Every adapter draws from the same registry surface, so results carry:

  • Evidence grade + clinical status on each source
  • License + reuse_ok (fail-closed) so you only reuse what you may
  • Trust & safety vetoes — retracted / dead-link / injection-flagged / revoked-signer knowledge is excluded
  • Citation chains when you use the graph-aware answer endpoint

Prefer MCP?

If you're in Claude Desktop / Claude Code, skip the adapters and serve over MCP instead — same knowledge, zero code.

→ Related: TypeScript SDK · Query the registry · Serve via MCP

Released under the MIT License.