VOOZH about

URL: https://www.nuget.org/packages/Encamina.Enmarcha.SemanticKernel/10.0.0-preview-07

⇱ NuGet Gallery | Encamina.Enmarcha.SemanticKernel 10.0.0-preview-07




Encamina.Enmarcha.SemanticKernel 10.0.0-preview-07

This is a prerelease version of Encamina.Enmarcha.SemanticKernel.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Encamina.Enmarcha.SemanticKernel --version 10.0.0-preview-07
 
 
NuGet\Install-Package Encamina.Enmarcha.SemanticKernel -Version 10.0.0-preview-07
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Encamina.Enmarcha.SemanticKernel" Version="10.0.0-preview-07" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Encamina.Enmarcha.SemanticKernel" Version="10.0.0-preview-07" />
 
Directory.Packages.props
<PackageReference Include="Encamina.Enmarcha.SemanticKernel" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Encamina.Enmarcha.SemanticKernel --version 10.0.0-preview-07
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Encamina.Enmarcha.SemanticKernel, 10.0.0-preview-07"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Encamina.Enmarcha.SemanticKernel@10.0.0-preview-07
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Encamina.Enmarcha.SemanticKernel&version=10.0.0-preview-07&prerelease
 
Install as a Cake Addin
#tool nuget:?package=Encamina.Enmarcha.SemanticKernel&version=10.0.0-preview-07&prerelease
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Semantic Kernel

👁 Nuget package

This project provides extended functionality for Semantic Kernel and additional features related to Semantic Kernel.

Setup

Nuget package

First, install NuGet. Then, install Encamina.Enmarcha.SemanticKernel from the package manager console:

PM> Install-Package Encamina.Enmarcha.SemanticKernel

.NET CLI:

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

How to use

MemoryManager

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
 }
}

EphemeralMemoryStoreHandler

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.

KernelExtensions

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 net6.0 net6.0 is compatible.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 was computed.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

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

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.5 287 6/1/2026
10.0.4 157 4/8/2026
10.0.3 538 4/6/2026
10.0.2 968 12/17/2025
10.0.1 346 12/17/2025
10.0.0 352 12/16/2025
10.0.0-preview-09 485 11/19/2025
10.0.0-preview-08 478 11/18/2025
10.0.0-preview-07 258 10/22/2025
10.0.0-preview-06 619 10/14/2025
10.0.0-preview-05 251 10/8/2025
10.0.0-preview-04 268 10/7/2025
10.0.0-preview-03 389 9/16/2025
10.0.0-preview-02 374 9/16/2025
8.3.0 671 9/10/2025
8.3.0-preview-02 270 9/10/2025
8.3.0-preview-01 256 9/8/2025
8.2.1-preview-08 260 8/18/2025
8.2.1-preview-07 263 8/12/2025
Loading failed