![]() |
VOOZH | about |
dotnet add package Encamina.Enmarcha.SemanticKernel --version 10.0.5
NuGet\Install-Package Encamina.Enmarcha.SemanticKernel -Version 10.0.5
<PackageReference Include="Encamina.Enmarcha.SemanticKernel" Version="10.0.5" />
<PackageVersion Include="Encamina.Enmarcha.SemanticKernel" Version="10.0.5" />Directory.Packages.props
<PackageReference Include="Encamina.Enmarcha.SemanticKernel" />Project file
paket add Encamina.Enmarcha.SemanticKernel --version 10.0.5
#r "nuget: Encamina.Enmarcha.SemanticKernel, 10.0.5"
#:package Encamina.Enmarcha.SemanticKernel@10.0.5
#addin nuget:?package=Encamina.Enmarcha.SemanticKernel&version=10.0.5Install as a Cake Addin
#tool nuget:?package=Encamina.Enmarcha.SemanticKernel&version=10.0.5Install as a Cake Tool
This project provides extended functionality for Semantic Kernel and additional features related to Semantic Kernel.
First, install NuGet. Then, install Encamina.Enmarcha.SemanticKernel from the package manager console:
PM> Install-Package Encamina.Enmarcha.SemanticKernel
Install .NET CLI](https://learn.microsoft.com/en-us/dotnet/core/tools/). Next, install Encamina.Enmarcha.SemanticKernel from the .NET CLI:
dotnet add package Encamina.Enmarcha.SemanticKernel
provides some CRUD operations over memories with multiple chunks that need to be managed IMemoryManager, using batch operations.
Starting from a Program.cs or a similar entry point file in your project, add the following code:
var builder = WebApplication.CreateBuilder(new WebApplicationOptions
{
// ...
});
// ...
builder.Services.AddScoped(sp =>
{
var kernel = new KernelBuilder()
.WithAzureTextEmbeddingGenerationService("<YOUR DEPLOYMENT NAME>", "<YOUR AZURE ENDPOINT>", "<YOUR API KEY>")
//.WithOpenAITextEmbeddingGenerationService("<YOUR MODEL ID>", "<YOUR API KEY>")
// ...
.Build();
// ...
return kernel;
});
// Here use the desired implementation (Qdrant, Volatile...)
builder.Services.AddSingleton<IMemoryStore, VolatileMemoryStore>();
builder.Services.AddMemoryManager();
This extension method will add the default implementation of the interface as a singleton. The default implementation is . With this, we can resolve the IMemoryManager via constructor.
public class MyClass
{
private readonly IMemoryManager memoryManager;
public MyClass(IMemoryManager memoryManager)
{
this.memoryManager = memoryManager;
}
public async Task TestMemoryManagerAsync()
{
await memoryManager.UpsertMemoryAsync("123456", "my-collection", new List<string>() { "First chunk", "Second chunk", "Third chunk" }, CancellationToken.None);
var memoryContent = await memoryManager.GetMemoryAsync("123456", "my-collection", CancellationToken.None);
// memoryContent.Chunks contains "First chunk", "Second chunk", "Third chunk" chunks
}
}
is a memory store handler that removes collections from memory after a configured time (thus ephemeral) of inactivity. First, you need to add the to your project configuration. You can achieve this by using any configuration provider. The followng code is an example of how the settings would appear using the appsettings.json file:
{
// ...
"EphemeralMemoryStoreHandlerOptions": {
"IdleTimeoutMinutes": 60, // Idle time in minutes after which a memory is considered inactive and can be removed from the memory store.
"InactivePollingTimeMinutes": 10, // Time in minutes to wait before polling for inactive memories
},
// ...
}
Next, in Program.cs or a similar entry point file in your project, add the following code:
var builder = WebApplication.CreateBuilder(new WebApplicationOptions
{
// ...
});
// ...
// Or others configuration providers...
builder.Configuration.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true);
builder.Services.AddOptions<EphemeralMemoryStoreHandlerOptions>().Bind(builder.Configuration.GetSection(nameof(EphemeralMemoryStoreHandlerOptions)))
.ValidateDataAnnotations()
.ValidateOnStart();
// Here use the desired implementation (Qdrant, Volatile...)
builder.Services.AddSingleton<IMemoryStore, VolatileMemoryStore>();
builder.Services.AddEphemeralMemoryStoreHandler(builder.Configuration);
This extension method will add as implementation of the interface as a singleton. Now you can inject IMemoryStoreHandler via constructor.
public class MyClass
{
private readonly IMemoryStoreHandler memoryStoreHandler;
public MyClass(IMemoryStoreHandler memoryStoreHandler)
{
this.memoryStoreHandler = memoryStoreHandler;
}
public async Task TestGetCollectionnameAsync()
{
var collectionName = await memoryStoreHandler.GetCollectionNameAsync("my-collection", CancellationToken.None);
}
}
This allows the my-collection collection stored in memory to be tracked, and after since the last access to the collection through the GetCollectionNameAsync method, it will be deleted.
Contains extension methods for Kernel. You can see all available extension methods in the class.
var mySemanticFunction = kernel.Skills.GetFunction("MyFunctionName");
var myContextVariables = new ContextVariables();
myContextVariables.Set(@"input", "Dummy input");
// Calculates the current total number of tokens used in generating a prompt of a mySemanticFunction from embedded resources in an assembly, using myContextVariables.
var mySemanticFunctionUsedTokens = await kernel.GetSemanticFunctionUsedTokensAsync(mySemanticFunction, Assembly.GetExecutingAssembly(), myContextVariables, ILengthFunctions.LengthByTokenCount, CancellationToken.None);
// ...
// Imports plugins with semantic functions from embedded resources in an assembly that represents their prompt and configuration files.
kernel.ImportSemanticPluginsFromAssembly(Assembly.GetExecutingAssembly());
// More extensions methods availables...
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 3 NuGet packages that depend on Encamina.Enmarcha.SemanticKernel:
| Package | Downloads |
|---|---|
|
Encamina.Enmarcha.SemanticKernel.Plugins.Memory
Package Description |
|
|
Encamina.Enmarcha.SemanticKernel.Plugins.QuestionAnswering
Package Description |
|
|
Encamina.Enmarcha.SemanticKernel.Plugins.Text
Package Description |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.5 | 212 | 6/1/2026 |
| 10.0.4 | 155 | 4/8/2026 |
| 10.0.3 | 533 | 4/6/2026 |
| 10.0.2 | 967 | 12/17/2025 |
| 10.0.1 | 344 | 12/17/2025 |
| 10.0.0 | 348 | 12/16/2025 |
| 10.0.0-preview-09 | 484 | 11/19/2025 |
| 10.0.0-preview-08 | 477 | 11/18/2025 |
| 10.0.0-preview-07 | 257 | 10/22/2025 |
| 10.0.0-preview-06 | 618 | 10/14/2025 |
| 10.0.0-preview-05 | 250 | 10/8/2025 |
| 10.0.0-preview-04 | 265 | 10/7/2025 |
| 10.0.0-preview-03 | 388 | 9/16/2025 |
| 10.0.0-preview-02 | 372 | 9/16/2025 |
| 8.3.0 | 669 | 9/10/2025 |
| 8.3.0-preview-02 | 269 | 9/10/2025 |
| 8.3.0-preview-01 | 254 | 9/8/2025 |
| 8.2.1-preview-08 | 259 | 8/18/2025 |
| 8.2.1-preview-07 | 261 | 8/12/2025 |