Add structured_data_schema to MemoryOptions interface (#3125)

This commit is contained in:
Saket Aryan
2025-07-08 22:37:44 +05:30
committed by GitHub
parent 0f5612b96d
commit ec9b0688d8
4 changed files with 8 additions and 2 deletions

View File

@@ -409,6 +409,11 @@ mode: "wide"
<Tab title="TypeScript"> <Tab title="TypeScript">
<Update label="2025-07-08" description="v2.1.36">
**New Features:**
- **Client:** Added `structured_data_schema` param to `add` method.
</Update>
<Update label="2025-07-08" description="v2.1.35"> <Update label="2025-07-08" description="v2.1.35">
**New Features:** **New Features:**
- **Client:** Added `createMemoryExport` and `getMemoryExport` methods. - **Client:** Added `createMemoryExport` and `getMemoryExport` methods.

View File

@@ -1,6 +1,6 @@
{ {
"name": "mem0ai", "name": "mem0ai",
"version": "2.1.35", "version": "2.1.36",
"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",

View File

@@ -31,6 +31,7 @@ export interface MemoryOptions {
async_mode?: boolean; async_mode?: boolean;
filter_memories?: boolean; filter_memories?: boolean;
immutable?: boolean; immutable?: boolean;
structured_data_schema?: Record<string, any>;
} }
export interface ProjectOptions { export interface ProjectOptions {

View File

@@ -1,7 +1,7 @@
// @ts-nocheck // @ts-nocheck
import type { TelemetryClient, TelemetryOptions } from "./telemetry.types"; import type { TelemetryClient, TelemetryOptions } from "./telemetry.types";
let version = "2.1.35"; 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;