Ben.SemanticKernel
4.5.7
dotnet add package Ben.SemanticKernel --version 4.5.7
NuGet\Install-Package Ben.SemanticKernel -Version 4.5.7
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="Ben.SemanticKernel" Version="4.5.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ben.SemanticKernel" Version="4.5.7" />
<PackageReference Include="Ben.SemanticKernel" />
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 4.5.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Ben.SemanticKernel, 4.5.7"
#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.
#addin nuget:?package=Ben.SemanticKernel&version=4.5.7
#tool nuget:?package=Ben.SemanticKernel&version=4.5.7
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- itext7 (>= 9.1.0)
- Microsoft.AspNetCore.Http (>= 2.3.0)
- Microsoft.KernelMemory.AI.Ollama (>= 0.97.250211.1)
- Microsoft.KernelMemory.AI.OpenAI (>= 0.97.250211.1)
- Microsoft.KernelMemory.Core (>= 0.97.250211.1)
- Microsoft.KernelMemory.MemoryDb.Qdrant (>= 0.97.250211.1)
- Microsoft.SemanticKernel (>= 1.40.0)
- Microsoft.SemanticKernel.Connectors.Ollama (>= 1.45.0-alpha)
- Microsoft.SemanticKernel.Connectors.Qdrant (>= 1.44.0-preview)
- Microsoft.SemanticKernel.Connectors.Sqlite (>= 1.44.0-preview)
- Polly (>= 8.5.2)
- pythonnet (>= 3.1.0-preview2024-09-06)
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 |
---|---|---|
4.5.7 | 1 | 16 hours ago |
4.5.6 | 16 | 16 hours ago |
4.5.5 | 29 | 17 hours ago |
4.5.4 | 22 | 18 hours ago |
4.5.3 | 37 | 21 hours ago |
4.5.2 | 30 | 21 hours ago |
4.5.1 | 29 | 21 hours ago |
4.5.0 | 29 | a day ago |
4.3.0 | 136 | 6 days ago |
4.2.1 | 136 | 6 days ago |
4.2.0 | 136 | 6 days ago |
4.1.0 | 140 | 7 days ago |
4.0.0 | 134 | 7 days ago |
3.2.1 | 467 | 14 days ago |
3.2.0 | 465 | 14 days ago |
3.1.0 | 69 | 17 days ago |
3.0.0 | 107 | 18 days ago |
2.0.0 | 134 | 19 days ago |
1.5.0 | 129 | 19 days ago |
1.4.0 | 130 | 19 days ago |
1.3.0 | 132 | 19 days ago |
1.2.0 | 65 | 24 days ago |
1.1.0 | 65 | 24 days ago |
1.0.0 | 60 | 24 days ago |