Soenneker.SemanticKernel.Pool.Gemini 11.0.634

Prefix Reserved
dotnet add package Soenneker.SemanticKernel.Pool.Gemini --version 11.0.634
                    
NuGet\Install-Package Soenneker.SemanticKernel.Pool.Gemini -Version 11.0.634
                    
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="Soenneker.SemanticKernel.Pool.Gemini" Version="11.0.634" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.SemanticKernel.Pool.Gemini" Version="11.0.634" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.SemanticKernel.Pool.Gemini" />
                    
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 Soenneker.SemanticKernel.Pool.Gemini --version 11.0.634
                    
#r "nuget: Soenneker.SemanticKernel.Pool.Gemini, 11.0.634"
                    
#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 Soenneker.SemanticKernel.Pool.Gemini@11.0.634
                    
#: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=Soenneker.SemanticKernel.Pool.Gemini&version=11.0.634
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.SemanticKernel.Pool.Gemini&version=11.0.634
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.SemanticKernel.Pool.Gemini

Gemini connector registration helpers for Soenneker.SemanticKernel.Pool.

Installation

dotnet add package Soenneker.SemanticKernel.Pool.Gemini

Add a Gemini entry

Resolve the pool and HTTP client cache from dependency injection, then register a chat or embedding entry:

using Soenneker.SemanticKernel.Enums.KernelType;
using Soenneker.SemanticKernel.Pool.Abstract;
using Soenneker.SemanticKernel.Pool.Gemini;
using Soenneker.Utils.HttpClientCache.Abstract;

await pool.AddGemini(
    poolId: "chat",
    key: "gemini-primary",
    type: KernelType.Chat,
    modelId: "gemini-model-id",
    apiKey: configuration["Gemini:ApiKey"]!,
    endpoint: "https://generativelanguage.googleapis.com",
    httpClientCache: httpClientCache,
    rps: 2,
    rpm: 60,
    rpd: 1_000,
    tokensPerDay: null,
    cancellationToken);

Use KernelType.Chat for Google AI chat completion or KernelType.Embedding for the Google AI embedding generator. Other kernel types throw NotSupportedException when the pool first constructs the kernel.

The adapter caches chat HTTP clients under gemini:{poolId}:{key} with a five-minute timeout. The endpoint argument is retained in the entry's SemanticKernelOptions, but this adapter does not pass it to the Google connector; connector endpoint behavior therefore comes from the Google Semantic Kernel package.

Pool quota values are reservations made when GetAvailable selects the entry. tokensPerDay counts one unit per acquisition; it is not populated from provider token usage.

Remove the entry

Use the matching helper so both the pool entry and its cached HTTP client are removed:

await pool.RemoveGemini(
    "chat",
    "gemini-primary",
    httpClientCache,
    cancellationToken);

Keep the API key in a protected configuration provider and avoid logging or serializing the generated SemanticKernelOptions.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.634 215 10/27/2026
11.0.633 53 10/27/2026
11.0.632 57 10/27/2026
11.0.631 61 10/27/2026
11.0.630 76 10/27/2026
11.0.629 53 10/27/2026
11.0.628 62 10/26/2026
11.0.626 62 10/26/2026
11.0.625 60 10/26/2026
11.0.624 74 10/26/2026
11.0.623 101 10/26/2026
11.0.622 101 10/26/2026
4.0.621 235 10/15/2026
4.0.620 103 10/15/2026
4.0.619 117 10/14/2026
4.0.618 105 10/14/2026
4.0.617 108 10/14/2026
4.0.616 105 10/14/2026
4.0.615 100 10/14/2026
4.0.608 92 10/13/2026
Loading failed

Updated Soenneker.SemanticKernel.Pool to 11.0.468