-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
UpsertMemoryAsync
method has changed in `IMemoryMana…
…ger` interface. - Signature of `BatchUpsertMemoriesAsync` method has changed in `IMemoryManager` interface. - Dependency with `Kernel` has been replace with dependency to `ITextEmbeddingGenerationService` in `MemoryManager` class. Also, added dependency with `ILogger`.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
// Ignore Spelling: Upsert | ||
|
||
using Microsoft.SemanticKernel; | ||
using Microsoft.SemanticKernel.Memory; | ||
|
||
namespace Encamina.Enmarcha.SemanticKernel.Abstractions; | ||
|
@@ -23,7 +24,7 @@ public interface IMemoryManager | |
/// <param name="cancellationToken">Cancellation token to cancel the operation.</param> | ||
Check warning on line 24 in src/Encamina.Enmarcha.SemanticKernel.Abstractions/IMemoryManager.cs GitHub Actions / CI
Check warning on line 24 in src/Encamina.Enmarcha.SemanticKernel.Abstractions/IMemoryManager.cs GitHub Actions / CI
|
||
/// <param name="metadata">Metadata of the memory.</param> | ||
Check warning on line 25 in src/Encamina.Enmarcha.SemanticKernel.Abstractions/IMemoryManager.cs GitHub Actions / CI
|
||
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> | ||
Task UpsertMemoryAsync(string memoryId, string collectionName, IEnumerable<string> chunks, CancellationToken cancellationToken, IDictionary<string, string> metadata = null); | ||
Task UpsertMemoryAsync(string memoryId, string collectionName, IEnumerable<string> chunks, IDictionary<string, string> metadata = null, Kernel kernel = null, CancellationToken cancellationToken = default); | ||
Check warning on line 27 in src/Encamina.Enmarcha.SemanticKernel.Abstractions/IMemoryManager.cs GitHub Actions / CI
Check warning on line 27 in src/Encamina.Enmarcha.SemanticKernel.Abstractions/IMemoryManager.cs GitHub Actions / CI
Check warning on line 27 in src/Encamina.Enmarcha.SemanticKernel.Abstractions/IMemoryManager.cs GitHub Actions / CI
Check warning on line 27 in src/Encamina.Enmarcha.SemanticKernel.Abstractions/IMemoryManager.cs GitHub Actions / CI
Check warning on line 27 in src/Encamina.Enmarcha.SemanticKernel.Abstractions/IMemoryManager.cs GitHub Actions / CI
Check warning on line 27 in src/Encamina.Enmarcha.SemanticKernel.Abstractions/IMemoryManager.cs GitHub Actions / CI
Check warning on line 27 in src/Encamina.Enmarcha.SemanticKernel.Abstractions/IMemoryManager.cs GitHub Actions / CI
Check warning on line 27 in src/Encamina.Enmarcha.SemanticKernel.Abstractions/IMemoryManager.cs GitHub Actions / CI
Check warning on line 27 in src/Encamina.Enmarcha.SemanticKernel.Abstractions/IMemoryManager.cs GitHub Actions / CI
Check warning on line 27 in src/Encamina.Enmarcha.SemanticKernel.Abstractions/IMemoryManager.cs GitHub Actions / CI
Check warning on line 27 in src/Encamina.Enmarcha.SemanticKernel.Abstractions/IMemoryManager.cs GitHub Actions / CI
Check warning on line 27 in src/Encamina.Enmarcha.SemanticKernel.Abstractions/IMemoryManager.cs GitHub Actions / CI
|
||
|
||
/// <summary> | ||
/// Deletes the memory content from a collection. | ||
|
@@ -54,5 +55,5 @@ public interface IMemoryManager | |
/// </param> | ||
/// <param name="cancellationToken">Cancellation token to cancel the operation.</param> | ||
/// <returns>The unique identifiers for the memory records (not necessarily the same as the unique identifier of the memory content).</returns> | ||
IAsyncEnumerable<string> BatchUpsertMemoriesAsync(string collectionName, IDictionary<string, MemoryContent> memoryContents, CancellationToken cancellationToken); | ||
IAsyncEnumerable<string> BatchUpsertMemoriesAsync(string collectionName, IDictionary<string, MemoryContent> memoryContents, Kernel kernel = null, CancellationToken cancellationToken = default); | ||
Check warning on line 58 in src/Encamina.Enmarcha.SemanticKernel.Abstractions/IMemoryManager.cs GitHub Actions / CI
Check warning on line 58 in src/Encamina.Enmarcha.SemanticKernel.Abstractions/IMemoryManager.cs GitHub Actions / CI
Check warning on line 58 in src/Encamina.Enmarcha.SemanticKernel.Abstractions/IMemoryManager.cs GitHub Actions / CI
Check warning on line 58 in src/Encamina.Enmarcha.SemanticKernel.Abstractions/IMemoryManager.cs GitHub Actions / CI
|
||
} |