@ai-memory/sdk
v0.1.1
Published
TypeScript SDK for the Agent Memory hosted control plane.
Readme
@ai-memory/sdk
Official TypeScript client for the Agent Memory hosted control plane.
Install
npm install @ai-memory/sdkUsage
import { AgentMemoryClient } from '@ai-memory/sdk';
const am = new AgentMemoryClient({
baseUrl: 'https://api.agent-memory.dev',
apiKey: process.env.AGENT_MEMORY_API_KEY!
});
const session = await am.createSession({ project: 'demo' });
await am.appendObservation(session.id, {
type: 'finding',
text: 'Discovered the bug was in the cache invalidation path.'
});
const hits = await am.search({ q: 'cache invalidation', project: 'demo' });Auth
am_live_<hex> API keys with read/write/admin scopes. See the dashboard
under /dashboard/keys.
