docs: update memory tool list, CLI usage, and config file reading logic (#4861)

Co-authored-by: Livia Ellen <liviaellen@msn.com>
This commit is contained in:
Kartik
2026-04-20 20:09:45 +05:30
committed by GitHub
co-authored by Livia Ellen
parent 5520226b5b
commit 4e611e8dba
31 changed files with 1530 additions and 364 deletions
+6 -5
View File
@@ -654,9 +654,9 @@ describe("OSSProvider — history error handling", () => {
});
// ---------------------------------------------------------------------------
// 9. OSSProvider: customPrompt passthrough
// 9. OSSProvider: customInstructions passthrough (v3.0.0: renamed from customPrompt)
// ---------------------------------------------------------------------------
describe("OSSProvider — customPrompt passthrough", () => {
describe("OSSProvider — customInstructions passthrough", () => {
let capturedConfig: Record<string, unknown> | undefined;
beforeEach(() => {
@@ -682,12 +682,13 @@ describe("OSSProvider — customPrompt passthrough", () => {
vi.restoreAllMocks();
});
it("passes customPrompt to Memory config when provided", async () => {
// v3.0.0: customPrompt renamed to customInstructions
it("passes customInstructions to Memory config when provided", async () => {
const { createProvider } = await import("./index.ts");
const cfg = mem0ConfigSchema.parse({
mode: "open-source",
oss: { disableHistory: true },
customPrompt: "Extract only user preferences.",
customInstructions: "Extract only user preferences.",
});
const api = { resolvePath: (p: string) => p } as any;
const provider = createProvider(cfg, api);
@@ -695,6 +696,6 @@ describe("OSSProvider — customPrompt passthrough", () => {
await provider.search("test", { user_id: "u1" });
expect(capturedConfig).toBeDefined();
expect(capturedConfig!.customPrompt).toBe("Extract only user preferences.");
expect(capturedConfig!.customInstructions).toBe("Extract only user preferences.");
});
});