GeminiDotnet.Extensions.AI
0.30.0
dotnet add package GeminiDotnet.Extensions.AI --version 0.30.0
NuGet\Install-Package GeminiDotnet.Extensions.AI -Version 0.30.0
<PackageReference Include="GeminiDotnet.Extensions.AI" Version="0.30.0" />
<PackageVersion Include="GeminiDotnet.Extensions.AI" Version="0.30.0" />
<PackageReference Include="GeminiDotnet.Extensions.AI" />
paket add GeminiDotnet.Extensions.AI --version 0.30.0
#r "nuget: GeminiDotnet.Extensions.AI, 0.30.0"
#:package GeminiDotnet.Extensions.AI@0.30.0
#addin nuget:?package=GeminiDotnet.Extensions.AI&version=0.30.0
#tool nuget:?package=GeminiDotnet.Extensions.AI&version=0.30.0
GeminiDotnet.Extensions.AI
This package implements Microsoft.Extensions.AI interfaces using GeminiDotnet.V1.
If you set RawRepresentationFactory, return a GeminiDotnet.V1.GenerateContentRequest for chat, a GeminiDotnet.V1.Models.BatchEmbedContentsRequest for embeddings, or null to use the mapped request. The adapter throws GeminiMappingException if the factory returns a V1Beta request.
Get started
dotnet add package GeminiDotnet.Extensions.AI
Create a GeminiChatClient to use Gemini through IChatClient.
var options = new GeminiClientOptions
{
ApiKey = "<your-api-key>"
};
IChatClient chatClient = new GeminiChatClient(options);
var response = await chatClient.GetResponseAsync("What is AI?");
Console.WriteLine(response.Message);
Use GetStreamingResponseAsync to read updates as they arrive.
var options = new GeminiClientOptions { ApiKey = "<your-api-key>" };
IChatClient chatClient = new GeminiChatClient(options);
await foreach (var update in chatClient.GetStreamingResponseAsync("What is AI?"))
{
Console.Write(update);
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- GeminiDotnet (>= 0.30.0)
- Microsoft.Extensions.AI.Abstractions (>= 10.11.0)
-
net11.0
- GeminiDotnet (>= 0.30.0)
- Microsoft.Extensions.AI.Abstractions (>= 10.11.0)
-
net8.0
- GeminiDotnet (>= 0.30.0)
- Microsoft.Extensions.AI.Abstractions (>= 10.11.0)
-
net9.0
- GeminiDotnet (>= 0.30.0)
- Microsoft.Extensions.AI.Abstractions (>= 10.11.0)
NuGet packages (7)
Showing the top 5 NuGet packages that depend on GeminiDotnet.Extensions.AI:
| Package | Downloads |
|---|---|
|
Soenneker.Maf.Pool.Gemini
Provides Gemini-specific registration extensions for MafPoolManager, enabling integration via Microsoft Agent Framework. |
|
|
Weavy.Core
A class library containing core business logic, data access and utility methods required by Weavy. |
|
|
Weavy.Admin
Razor class library containing the management interface for Weavy. |
|
|
Weavy.Api
Package Description |
|
|
AIKit.Clients.Gemini
Google Gemini client provider for AIKit, supporting chat. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on GeminiDotnet.Extensions.AI:
| Repository | Stars |
|---|---|
|
clawdotnet/openclaw.net
Self-hosted Enterprise and Personal AI + agent runtime in .NET (NativeAOT-friendly)
|
| Version | Downloads | Last Updated |
|---|---|---|
| 0.30.0 | 168 | 11/24/2026 |
| 0.29.0 | 11,689 | 11/5/2026 |
| 0.28.0 | 14,619 | 10/25/2026 |
| 0.27.0 | 66,928 | 10/3/2026 |
| 0.26.0 | 35,712 | 8/31/2026 |
| 0.25.0 | 27,803 | 5/4/2026 |
| 0.24.0 | 664 | 4/27/2026 |
| 0.23.0 | 15,956 | 3/11/2026 |
| 0.22.0 | 8,200 | 2/13/2026 |
| 0.21.0 | 18,948 | 1/22/2026 |
| 0.20.0 | 10,289 | 1/9/2026 |
| 0.19.7 | 1,250 | 1/2/2026 |
| 0.19.6-ge41ebb5b06 | 152 | 1/2/2026 |
| 0.19.4-g6c44932266 | 148 | 1/2/2026 |
| 0.19.3-alpha | 156 | 1/2/2026 |
| 0.19.2-alpha-g2f6eb372c3 | 156 | 1/2/2026 |
| 0.18.1 | 5,356 | 12/17/2025 |
| 0.18.0 | 2,048 | 12/10/2025 |
| 0.17.2 | 4,026 | 12/4/2025 |
| 0.17.1 | 3,011 | 11/18/2025 |