mem0ai 3.0.7 → 3.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -50,7 +50,7 @@ module.exports = __toCommonJS(index_exports);
50
50
  var import_axios = __toESM(require("axios"));
51
51
 
52
52
  // src/client/telemetry.ts
53
- var version = true ? "3.0.7" : "dev";
53
+ var version = true ? "3.0.8" : "dev";
54
54
  var MEM0_TELEMETRY = true;
55
55
  var _a;
56
56
  try {
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  import axios from "axios";
3
3
 
4
4
  // src/client/telemetry.ts
5
- var version = true ? "3.0.7" : "dev";
5
+ var version = true ? "3.0.8" : "dev";
6
6
  var MEM0_TELEMETRY = true;
7
7
  var _a;
8
8
  try {
@@ -328,12 +328,14 @@ interface AddMemoryOptions extends Entity {
328
328
  metadata?: Record<string, any>;
329
329
  filters?: SearchFilters;
330
330
  infer?: boolean;
331
+ timestamp?: number | string | Date | null;
331
332
  }
332
333
  interface SearchMemoryOptions {
333
334
  topK?: number;
334
335
  filters?: SearchFilters;
335
336
  threshold?: number;
336
337
  explain?: boolean;
338
+ referenceDate?: number | string | Date | null;
337
339
  }
338
340
  interface GetAllMemoryOptions {
339
341
  topK?: number;
@@ -341,6 +343,10 @@ interface GetAllMemoryOptions {
341
343
  }
342
344
  interface DeleteAllMemoryOptions extends Entity {
343
345
  }
346
+ interface UpdateProjectOptions {
347
+ decay?: boolean;
348
+ [key: string]: any;
349
+ }
344
350
 
345
351
  declare class Memory {
346
352
  private config;
@@ -395,7 +401,14 @@ declare class Memory {
395
401
  private _initializeTelemetry;
396
402
  private _getTelemetryId;
397
403
  private _captureEvent;
404
+ private _displayFirstRunNotice;
405
+ private _displayDecayUsageNotice;
406
+ private _displayTemporalUsageNotice;
407
+ private _displayScaleThresholdNotice;
408
+ private _displayPerformanceSlowQueryNotice;
409
+ private _getNoticeTelemetryId;
398
410
  static fromConfig(configDict: Record<string, any>): Memory;
411
+ updateProject(options?: UpdateProjectOptions): Promise<never>;
399
412
  add(messages: string | Message[], config: AddMemoryOptions): Promise<SearchResult>;
400
413
  private addToVectorStore;
401
414
  get(memoryId: string): Promise<MemoryItem | null>;
@@ -1035,4 +1048,4 @@ declare class HistoryManagerFactory {
1035
1048
  static create(provider: string, config: HistoryStoreConfig): HistoryManager;
1036
1049
  }
1037
1050
 
1038
- export { type AddMemoryOptions, AnthropicLLM, AzureAISearch, AzureOpenAIEmbedder, type DeleteAllMemoryOptions, type Embedder, EmbedderFactory, type EmbeddingConfig, type Entity, type GetAllMemoryOptions, GoogleEmbedder, GoogleLLM, GroqLLM, HistoryManagerFactory, type HistoryStoreConfig, type LLM, type LLMConfig, LLMFactory, type LLMResponse, LMStudioEmbedder, LMStudioLLM, LangchainEmbedder, LangchainLLM, LangchainVectorStore, Memory, type MemoryConfig, MemoryConfigSchema, type MemoryItem, MemoryVectorStore, type Message, MistralLLM, type MultiModalMessages, OllamaEmbedder, OllamaLLM, OpenAIEmbedder, OpenAILLM, OpenAIStructuredLLM, PGVector, Qdrant, RedisDB, type SearchFilters, type SearchMemoryOptions, type SearchResult, SupabaseDB, type VectorStore, type VectorStoreConfig, VectorStoreFactory, type VectorStoreResult, VectorizeDB, buildFilterConditions };
1051
+ export { type AddMemoryOptions, AnthropicLLM, AzureAISearch, AzureOpenAIEmbedder, type DeleteAllMemoryOptions, type Embedder, EmbedderFactory, type EmbeddingConfig, type Entity, type GetAllMemoryOptions, GoogleEmbedder, GoogleLLM, GroqLLM, HistoryManagerFactory, type HistoryStoreConfig, type LLM, type LLMConfig, LLMFactory, type LLMResponse, LMStudioEmbedder, LMStudioLLM, LangchainEmbedder, LangchainLLM, LangchainVectorStore, Memory, type MemoryConfig, MemoryConfigSchema, type MemoryItem, MemoryVectorStore, type Message, MistralLLM, type MultiModalMessages, OllamaEmbedder, OllamaLLM, OpenAIEmbedder, OpenAILLM, OpenAIStructuredLLM, PGVector, Qdrant, RedisDB, type SearchFilters, type SearchMemoryOptions, type SearchResult, SupabaseDB, type UpdateProjectOptions, type VectorStore, type VectorStoreConfig, VectorStoreFactory, type VectorStoreResult, VectorizeDB, buildFilterConditions };
@@ -328,12 +328,14 @@ interface AddMemoryOptions extends Entity {
328
328
  metadata?: Record<string, any>;
329
329
  filters?: SearchFilters;
330
330
  infer?: boolean;
331
+ timestamp?: number | string | Date | null;
331
332
  }
332
333
  interface SearchMemoryOptions {
333
334
  topK?: number;
334
335
  filters?: SearchFilters;
335
336
  threshold?: number;
336
337
  explain?: boolean;
338
+ referenceDate?: number | string | Date | null;
337
339
  }
338
340
  interface GetAllMemoryOptions {
339
341
  topK?: number;
@@ -341,6 +343,10 @@ interface GetAllMemoryOptions {
341
343
  }
342
344
  interface DeleteAllMemoryOptions extends Entity {
343
345
  }
346
+ interface UpdateProjectOptions {
347
+ decay?: boolean;
348
+ [key: string]: any;
349
+ }
344
350
 
345
351
  declare class Memory {
346
352
  private config;
@@ -395,7 +401,14 @@ declare class Memory {
395
401
  private _initializeTelemetry;
396
402
  private _getTelemetryId;
397
403
  private _captureEvent;
404
+ private _displayFirstRunNotice;
405
+ private _displayDecayUsageNotice;
406
+ private _displayTemporalUsageNotice;
407
+ private _displayScaleThresholdNotice;
408
+ private _displayPerformanceSlowQueryNotice;
409
+ private _getNoticeTelemetryId;
398
410
  static fromConfig(configDict: Record<string, any>): Memory;
411
+ updateProject(options?: UpdateProjectOptions): Promise<never>;
399
412
  add(messages: string | Message[], config: AddMemoryOptions): Promise<SearchResult>;
400
413
  private addToVectorStore;
401
414
  get(memoryId: string): Promise<MemoryItem | null>;
@@ -1035,4 +1048,4 @@ declare class HistoryManagerFactory {
1035
1048
  static create(provider: string, config: HistoryStoreConfig): HistoryManager;
1036
1049
  }
1037
1050
 
1038
- export { type AddMemoryOptions, AnthropicLLM, AzureAISearch, AzureOpenAIEmbedder, type DeleteAllMemoryOptions, type Embedder, EmbedderFactory, type EmbeddingConfig, type Entity, type GetAllMemoryOptions, GoogleEmbedder, GoogleLLM, GroqLLM, HistoryManagerFactory, type HistoryStoreConfig, type LLM, type LLMConfig, LLMFactory, type LLMResponse, LMStudioEmbedder, LMStudioLLM, LangchainEmbedder, LangchainLLM, LangchainVectorStore, Memory, type MemoryConfig, MemoryConfigSchema, type MemoryItem, MemoryVectorStore, type Message, MistralLLM, type MultiModalMessages, OllamaEmbedder, OllamaLLM, OpenAIEmbedder, OpenAILLM, OpenAIStructuredLLM, PGVector, Qdrant, RedisDB, type SearchFilters, type SearchMemoryOptions, type SearchResult, SupabaseDB, type VectorStore, type VectorStoreConfig, VectorStoreFactory, type VectorStoreResult, VectorizeDB, buildFilterConditions };
1051
+ export { type AddMemoryOptions, AnthropicLLM, AzureAISearch, AzureOpenAIEmbedder, type DeleteAllMemoryOptions, type Embedder, EmbedderFactory, type EmbeddingConfig, type Entity, type GetAllMemoryOptions, GoogleEmbedder, GoogleLLM, GroqLLM, HistoryManagerFactory, type HistoryStoreConfig, type LLM, type LLMConfig, LLMFactory, type LLMResponse, LMStudioEmbedder, LMStudioLLM, LangchainEmbedder, LangchainLLM, LangchainVectorStore, Memory, type MemoryConfig, MemoryConfigSchema, type MemoryItem, MemoryVectorStore, type Message, MistralLLM, type MultiModalMessages, OllamaEmbedder, OllamaLLM, OpenAIEmbedder, OpenAILLM, OpenAIStructuredLLM, PGVector, Qdrant, RedisDB, type SearchFilters, type SearchMemoryOptions, type SearchResult, SupabaseDB, type UpdateProjectOptions, type VectorStore, type VectorStoreConfig, VectorStoreFactory, type VectorStoreResult, VectorizeDB, buildFilterConditions };