Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e3f21bf7c1 |
@@ -216,7 +216,7 @@ memory.delete_all(user_id="alice")
|
|||||||
## Put it into practice
|
## Put it into practice
|
||||||
|
|
||||||
- Review the <Link href="/api-reference/memory/delete-memory">Delete Memory API reference</Link>, plus <Link href="/api-reference/memory/batch-delete">Batch Delete</Link> and <Link href="/api-reference/memory/delete-memories">Filtered Delete</Link>.
|
- Review the <Link href="/api-reference/memory/delete-memory">Delete Memory API reference</Link>, plus <Link href="/api-reference/memory/batch-delete">Batch Delete</Link> and <Link href="/api-reference/memory/delete-memories">Filtered Delete</Link>.
|
||||||
- Pair deletes with <Link href="/platform/features/expiration-date">Expiration Policies</Link> to automate retention.
|
- Use metadata-based expiration patterns to automate retention (see the <Link href="/cookbooks/essentials/building-ai-companion">AI Companion cookbook</Link> for an example).
|
||||||
|
|
||||||
## See it live
|
## See it live
|
||||||
|
|
||||||
@@ -233,9 +233,9 @@ memory.delete_all(user_id="alice")
|
|||||||
href="/core-concepts/memory-operations/add"
|
href="/core-concepts/memory-operations/add"
|
||||||
/>
|
/>
|
||||||
<Card
|
<Card
|
||||||
title="Enable Expiration Policies"
|
title="Search & Retrieve Concepts"
|
||||||
description="Automate retention with the platform’s expiration feature."
|
description="Learn how to find and rank the memories you keep."
|
||||||
icon="clock"
|
icon="magnifying-glass"
|
||||||
href="/platform/features/expiration-date"
|
href="/core-concepts/memory-operations/search"
|
||||||
/>
|
/>
|
||||||
</CardGroup>
|
</CardGroup>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ module.exports = {
|
|||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
"^@/(.*)$": "<rootDir>/src/$1",
|
"^@/(.*)$": "<rootDir>/src/$1",
|
||||||
},
|
},
|
||||||
setupFiles: ["dotenv/config", "<rootDir>/jest.setup.ts"],
|
setupFiles: ["dotenv/config"],
|
||||||
testPathIgnorePatterns: ["/node_modules/", "/dist/"],
|
testPathIgnorePatterns: ["/node_modules/", "/dist/"],
|
||||||
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
|
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
|
||||||
globals: {
|
globals: {
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
import pkg from "./package.json";
|
|
||||||
|
|
||||||
(globalThis as any).__MEM0_SDK_VERSION__ = pkg.version;
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mem0ai",
|
"name": "mem0ai",
|
||||||
"version": "3.0.1",
|
"version": "3.0.0",
|
||||||
"description": "The Memory Layer For Your AI Apps",
|
"description": "The Memory Layer For Your AI Apps",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.mjs",
|
"module": "./dist/index.mjs",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
import type { TelemetryClient, TelemetryOptions } from "./telemetry.types";
|
import type { TelemetryClient, TelemetryOptions } from "./telemetry.types";
|
||||||
|
|
||||||
let version = __MEM0_SDK_VERSION__;
|
let version = "2.1.36";
|
||||||
|
|
||||||
// Safely check for process.env in different environments
|
// Safely check for process.env in different environments
|
||||||
let MEM0_TELEMETRY = true;
|
let MEM0_TELEMETRY = true;
|
||||||
|
|||||||
Vendored
-1
@@ -1 +0,0 @@
|
|||||||
declare const __MEM0_SDK_VERSION__: string;
|
|
||||||
@@ -4,7 +4,7 @@ import type {
|
|||||||
TelemetryEventData,
|
TelemetryEventData,
|
||||||
} from "./telemetry.types";
|
} from "./telemetry.types";
|
||||||
|
|
||||||
let version = __MEM0_SDK_VERSION__;
|
let version = "2.1.34";
|
||||||
|
|
||||||
// Safely check for process.env in different environments
|
// Safely check for process.env in different environments
|
||||||
let MEM0_TELEMETRY = true;
|
let MEM0_TELEMETRY = true;
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { defineConfig } from "tsup";
|
import { defineConfig } from "tsup";
|
||||||
import pkg from "./package.json";
|
|
||||||
|
|
||||||
const external = [
|
const external = [
|
||||||
"openai",
|
"openai",
|
||||||
@@ -24,10 +23,6 @@ const external = [
|
|||||||
"natural",
|
"natural",
|
||||||
];
|
];
|
||||||
|
|
||||||
const define = {
|
|
||||||
__MEM0_SDK_VERSION__: JSON.stringify(pkg.version),
|
|
||||||
};
|
|
||||||
|
|
||||||
export default defineConfig([
|
export default defineConfig([
|
||||||
{
|
{
|
||||||
entry: ["src/client/index.ts"],
|
entry: ["src/client/index.ts"],
|
||||||
@@ -35,7 +30,6 @@ export default defineConfig([
|
|||||||
dts: true,
|
dts: true,
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
external,
|
external,
|
||||||
define,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
entry: ["src/oss/src/index.ts"],
|
entry: ["src/oss/src/index.ts"],
|
||||||
@@ -44,6 +38,5 @@ export default defineConfig([
|
|||||||
dts: true,
|
dts: true,
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
external,
|
external,
|
||||||
define,
|
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user