Ben.SemanticKernel
6.0.0
dotnet add package Ben.SemanticKernel --version 6.0.0
NuGet\Install-Package Ben.SemanticKernel -Version 6.0.0
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.
For projects that support PackageReference, copy this XML node into the project file to reference the package.
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 Ben.SemanticKernel --version 6.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Ben.SemanticKernel, 6.0.0"
#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 Ben.SemanticKernel@6.0.0
#: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=Ben.SemanticKernel&version=6.0.0
#tool nuget:?package=Ben.SemanticKernel&version=6.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Ben.SemanticKernel
A simple .NET library for working with Microsoft's Semantic Kernel.
功能特点
- 简化与Semantic Kernel的集成
- 提供聊天服务和知识导入功能
- 适用于.NET 8.0项目
安装方法
通过NuGet包管理器安装:
Install-Package Ben.SemanticKernel
或者使用.NET CLI:
dotnet add package Ben.SemanticKernel
使用示例
using Ben.SemanticKernel;
// 初始化聊天服务
var chatService = new ChatService(apiKey, endpoint);
// 使用聊天服务
var response = await chatService.ChatAsync("你好,请介绍一下自己");
// 导入知识到知识库
var importService = new ImportKmsService(options);
await importService.ImportFromFileAsync("path/to/file.txt");
贡献指南
欢迎提交Pull Request或提出Issue。
许可证
MIT
| 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 was computed. 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 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- BouncyCastle.Cryptography (>= 2.6.2)
- Google.Protobuf (>= 3.30.0)
- HtmlAgilityPack (>= 1.12.1)
- itext7 (>= 9.1.0)
- Microsoft.AspNetCore.Http (>= 2.3.0)
- Microsoft.Data.SqlClient (>= 6.1.0-preview1.25120.4)
- Microsoft.Extensions.Http.Polly (>= 9.0.4)
- Microsoft.KernelMemory.AI.Ollama (>= 0.98.250508.3)
- Microsoft.KernelMemory.AI.OpenAI (>= 0.98.250508.3)
- Microsoft.KernelMemory.Core (>= 0.98.250508.3)
- Microsoft.KernelMemory.MemoryDb.Postgres (>= 0.98.250508.3)
- Microsoft.KernelMemory.MemoryDb.Qdrant (>= 0.98.250508.3)
- Microsoft.Playwright (>= 1.52.0)
- Microsoft.Playwright.NUnit (>= 1.52.0)
- Microsoft.SemanticKernel (>= 1.66.0)
- Microsoft.SemanticKernel.Connectors.Ollama (>= 1.54.0-alpha)
- Microsoft.SemanticKernel.Connectors.PgVector (>= 1.54.0-preview)
- Microsoft.SemanticKernel.Connectors.Qdrant (>= 1.54.0-preview)
- Microsoft.SemanticKernel.Connectors.SqliteVec (>= 1.54.0-preview)
- MySql.Data (>= 9.3.0)
- Polly (>= 8.5.2)
- Polly.Extensions.Http (>= 3.0.0)
- pythonnet (>= 3.1.0-preview2024-09-06)
- Selenium.Support (>= 4.31.0)
- Selenium.WebDriver (>= 4.31.0)
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 |
|---|---|---|
| 6.0.0 | 322 | 10/31/2025 |
| 5.3.4 | 205 | 10/31/2025 |
| 5.3.3 | 198 | 10/31/2025 |
| 5.3.2 | 180 | 10/31/2025 |
| 5.3.1 | 222 | 10/28/2025 |
| 5.3.0 | 216 | 10/28/2025 |
| 5.2.29 | 190 | 10/24/2025 |
| 5.2.28 | 225 | 10/24/2025 |
| 5.2.27 | 208 | 10/22/2025 |
| 5.2.26 | 203 | 10/22/2025 |
| 5.2.25 | 216 | 10/21/2025 |
| 5.2.24 | 204 | 10/21/2025 |
| 5.2.23 | 220 | 10/21/2025 |
| 5.2.22 | 209 | 10/21/2025 |
| 5.2.21 | 213 | 10/21/2025 |
| 5.2.20 | 209 | 10/20/2025 |
| 5.2.19 | 195 | 10/19/2025 |
| 5.2.18 | 220 | 10/14/2025 |
| 5.2.17 | 214 | 10/14/2025 |
| 5.2.16 | 220 | 10/13/2025 |
Loading failed