client.memories for Agent memory and per-user memory.
Create and list Agent memory
status, chunk_count, and error_message.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Manage agent and user memories with the JavaScript SDK
client.memories for Agent memory and per-user memory.
import { ChatATPClient } from "@chatatp/studio";
const client = new ChatATPClient({ apiKey: "chatatp_sk_..." });
const memory = await client.memories.create(7, {
title: "Preferred response style",
content: "The user prefers concise answers.",
memory_type: "preference",
importance: 1.0,
});
const memories = await client.memories.list(7);
status, chunk_count, and error_message.
await client.memories.create(7, {
title: "Subscription plan",
content: "The user is on the Pro plan.",
agent_user_id: 42,
memory_type: "fact",
});
const result = await client.memories.search(
7,
42,
"What plan is the user on?",
5,
);
console.log(result.context, result.has_context);
