Ben.SemanticKernel
3.2.1
dotnet add package Ben.SemanticKernel --version 3.2.1
NuGet\Install-Package Ben.SemanticKernel -Version 3.2.1
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="3.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Ben.SemanticKernel --version 3.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Ben.SemanticKernel, 3.2.1"
#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.
// Install Ben.SemanticKernel as a Cake Addin #addin nuget:?package=Ben.SemanticKernel&version=3.2.1 // Install Ben.SemanticKernel as a Cake Tool #tool nuget:?package=Ben.SemanticKernel&version=3.2.1
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
dotnet pack Ben.SematicKernel.csproj -c Release
dotnet nuget push bin/Release/Ben.SemanticKernel.3.0.0.nupkg -k oy2lkg3manzfmhokemyqkyvrcv3bakvufdjs3qr7uaajtq -s https://api.nuget.org/v3/index.json
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
- 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.40.0-alpha)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.