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 +1 -1
- package/dist/index.mjs +1 -1
- package/dist/oss/index.d.mts +14 -1
- package/dist/oss/index.d.ts +14 -1
- package/dist/oss/index.js +1282 -68
- package/dist/oss/index.js.map +1 -1
- package/dist/oss/index.mjs +1282 -68
- 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,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 };
|
package/dist/oss/index.d.ts
CHANGED
|
@@ -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 };
|