TypeScript & Python SDK
Integrate Memron directly into LangChain, LlamaIndex, AutoGen, CrewAI, or custom Node/Python agent runtimes.
SDK Code Examples
import { MemronClient } from '@memron/sdk';
const memron = new MemronClient({
apiKey: process.env.MEMRON_API_KEY!,
});
// Store a memory
const memory = await memron.memories.store({
title: 'Next.js Routing Policy',
content: 'Use App Router with server actions and memory cache for development watch.',
tags: ['frontend', 'nextjs'],
});
// Query memory with RRF hybrid retrieval
const context = await memron.retrieval.search({
query: 'How should Next.js routes be configured?',
tokenBudget: 1500,
});
console.log(context.formatAsXml());