mem0ai 3.0.6 → 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 +1 -1
- package/dist/index.mjs +1 -1
- package/dist/oss/index.d.mts +15 -1
- package/dist/oss/index.d.ts +15 -1
- package/dist/oss/index.js +1328 -82
- package/dist/oss/index.js.map +1 -1
- package/dist/oss/index.mjs +1328 -82
- package/dist/oss/index.mjs.map +1 -1
- package/package.json +7 -2
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/dist/oss/index.d.mts
CHANGED
|
@@ -328,11 +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;
|
|
337
|
+
explain?: boolean;
|
|
338
|
+
referenceDate?: number | string | Date | null;
|
|
336
339
|
}
|
|
337
340
|
interface GetAllMemoryOptions {
|
|
338
341
|
topK?: number;
|
|
@@ -340,6 +343,10 @@ interface GetAllMemoryOptions {
|
|
|
340
343
|
}
|
|
341
344
|
interface DeleteAllMemoryOptions extends Entity {
|
|
342
345
|
}
|
|
346
|
+
interface UpdateProjectOptions {
|
|
347
|
+
decay?: boolean;
|
|
348
|
+
[key: string]: any;
|
|
349
|
+
}
|
|
343
350
|
|
|
344
351
|
declare class Memory {
|
|
345
352
|
private config;
|
|
@@ -394,7 +401,14 @@ declare class Memory {
|
|
|
394
401
|
private _initializeTelemetry;
|
|
395
402
|
private _getTelemetryId;
|
|
396
403
|
private _captureEvent;
|
|
404
|
+
private _displayFirstRunNotice;
|
|
405
|
+
private _displayDecayUsageNotice;
|
|
406
|
+
private _displayTemporalUsageNotice;
|
|
407
|
+
private _displayScaleThresholdNotice;
|
|
408
|
+
private _displayPerformanceSlowQueryNotice;
|
|
409
|
+
private _getNoticeTelemetryId;
|
|
397
410
|
static fromConfig(configDict: Record<string, any>): Memory;
|
|
411
|
+
updateProject(options?: UpdateProjectOptions): Promise<never>;
|
|
398
412
|
add(messages: string | Message[], config: AddMemoryOptions): Promise<SearchResult>;
|
|
399
413
|
private addToVectorStore;
|
|
400
414
|
get(memoryId: string): Promise<MemoryItem | null>;
|
|
@@ -1034,4 +1048,4 @@ declare class HistoryManagerFactory {
|
|
|
1034
1048
|
static create(provider: string, config: HistoryStoreConfig): HistoryManager;
|
|
1035
1049
|
}
|
|
1036
1050
|
|
|
1037
|
-
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 };
|
package/dist/oss/index.d.ts
CHANGED
|
@@ -328,11 +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;
|
|
337
|
+
explain?: boolean;
|
|
338
|
+
referenceDate?: number | string | Date | null;
|
|
336
339
|
}
|
|
337
340
|
interface GetAllMemoryOptions {
|
|
338
341
|
topK?: number;
|
|
@@ -340,6 +343,10 @@ interface GetAllMemoryOptions {
|
|
|
340
343
|
}
|
|
341
344
|
interface DeleteAllMemoryOptions extends Entity {
|
|
342
345
|
}
|
|
346
|
+
interface UpdateProjectOptions {
|
|
347
|
+
decay?: boolean;
|
|
348
|
+
[key: string]: any;
|
|
349
|
+
}
|
|
343
350
|
|
|
344
351
|
declare class Memory {
|
|
345
352
|
private config;
|
|
@@ -394,7 +401,14 @@ declare class Memory {
|
|
|
394
401
|
private _initializeTelemetry;
|
|
395
402
|
private _getTelemetryId;
|
|
396
403
|
private _captureEvent;
|
|
404
|
+
private _displayFirstRunNotice;
|
|
405
|
+
private _displayDecayUsageNotice;
|
|
406
|
+
private _displayTemporalUsageNotice;
|
|
407
|
+
private _displayScaleThresholdNotice;
|
|
408
|
+
private _displayPerformanceSlowQueryNotice;
|
|
409
|
+
private _getNoticeTelemetryId;
|
|
397
410
|
static fromConfig(configDict: Record<string, any>): Memory;
|
|
411
|
+
updateProject(options?: UpdateProjectOptions): Promise<never>;
|
|
398
412
|
add(messages: string | Message[], config: AddMemoryOptions): Promise<SearchResult>;
|
|
399
413
|
private addToVectorStore;
|
|
400
414
|
get(memoryId: string): Promise<MemoryItem | null>;
|
|
@@ -1034,4 +1048,4 @@ declare class HistoryManagerFactory {
|
|
|
1034
1048
|
static create(provider: string, config: HistoryStoreConfig): HistoryManager;
|
|
1035
1049
|
}
|
|
1036
1050
|
|
|
1037
|
-
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 };
|