GeminiDotnet.Extensions.AI
0.4.1-preview
See the version list below for details.
dotnet add package GeminiDotnet.Extensions.AI --version 0.4.1-preview
NuGet\Install-Package GeminiDotnet.Extensions.AI -Version 0.4.1-preview
<PackageReference Include="GeminiDotnet.Extensions.AI" Version="0.4.1-preview" />
<PackageVersion Include="GeminiDotnet.Extensions.AI" Version="0.4.1-preview" />
<PackageReference Include="GeminiDotnet.Extensions.AI" />
paket add GeminiDotnet.Extensions.AI --version 0.4.1-preview
#r "nuget: GeminiDotnet.Extensions.AI, 0.4.1-preview"
#addin nuget:?package=GeminiDotnet.Extensions.AI&version=0.4.1-preview&prerelease
#tool nuget:?package=GeminiDotnet.Extensions.AI&version=0.4.1-preview&prerelease
GeminiDotnet.Extensions.AI
This package provides an implementation of Microsoft.Extensions.AI.IChatClient
for interacting with Google Gemini models.
For more information on why you may want to use the IChatClient
abstraction, you can read the announcement blog post.
Getting Started
First, install the NuGet package into your project.
dotnet add package GeminiDotnet.Extensions.AI
Then, you can create and use the IChatClient
abstraction to interact with Gemini as follows.
using GeminiDotnet;
using GeminiDotnet.Extensions.AI;
var options = new GeminiClientOptions
{
ApiKey = "<your-api-key>"
};
IChatClient chatClient = new GeminiChatClient(options);
var response = await chatClient.CompleteAsync("What is AI?");
Console.WriteLine(response.Message);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
-
net9.0
- GeminiDotnet (>= 0.4.1)
- Microsoft.Extensions.AI.Abstractions (>= 9.1.0-preview.1.25064.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on GeminiDotnet.Extensions.AI:
Package | Downloads |
---|---|
Weavy.Core
A class library containing core business logic, data access and utility methods required by Weavy. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.8.0-preview | 121 | 6 days ago |
0.7.1-preview | 139 | a month ago |
0.7.0-preview | 122 | a month ago |
0.6.1-preview | 73 | 2 months ago |
0.6.0-preview | 64 | 2 months ago |
0.5.0-preview | 66 | 2 months ago |
0.4.1-preview | 77 | 2 months ago |
0.4.0-preview | 59 | 2 months ago |
0.3.0-preview | 69 | 2 months ago |
0.2.0-preview | 62 | 2 months ago |
0.1.2-preview | 54 | 3 months ago |
0.1.1-preview | 51 | 3 months ago |
0.1.0-preview | 58 | 3 months ago |