AI Skill Hub 强烈推荐:semantic-kernel AI技能包 是一款优质的AI工具。在 GitHub 上收获超过 27.9k 颗 Star,AI 综合评分 8.5 分,在同类工具中表现稳健。如果你正在寻找可靠的AI工具解决方案,这是一个值得深入了解的选择。
微软开源的企业级AI集成框架,支持多种大语言模型快速接入应用。提供插件系统、记忆管理和工作流编排,适合开发者构建智能应用和企业AI解决方案。
semantic-kernel AI技能包 是一款基于 C# 开发的开源工具,专注于 LLM集成、企业AI框架、多模型支持 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
微软开源的企业级AI集成框架,支持多种大语言模型快速接入应用。提供插件系统、记忆管理和工作流编排,适合开发者构建智能应用和企业AI解决方案。
semantic-kernel AI技能包 是一款基于 C# 开发的开源工具,专注于 LLM集成、企业AI框架、多模型支持 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 克隆仓库 git clone https://github.com/microsoft/semantic-kernel cd semantic-kernel # 查看安装说明 cat README.md # 按 README 完成环境依赖安装后即可使用
# 查看帮助 semantic-kernel --help # 基本运行 semantic-kernel [options] <input> # 详细使用说明请查阅文档 # https://github.com/microsoft/semantic-kernel
# semantic-kernel 配置说明 # 查看配置选项 semantic-kernel --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export SEMANTIC_KERNEL_CONFIG="/path/to/config.yml"
[!IMPORTANT] Semantic Kernel is now Microsoft Agent Framework! Microsoft Agent Framework (MAF) is the enterprise‑ready successor to Semantic Kernel. Microsoft Agent Framework is now available at version 1.0 as a production-ready release: stable APIs, and a commitment to long-term support. Whether you're building a single assistant or orchestrating a fleet of specialized agents, Microsoft Agent Framework 1.0 gives you enterprise-grade multi-agent orchestration, multi-provider model support, and cross-runtime interoperability via A2A and MCP. Learn more about Semantic Kernel and Agent Framework here: Semantic Kernel and Microsoft Agent Framework on the Agent Framework blog, and try out the Semantic Kernel migration guide.
Build intelligent AI agents and multi-agent systems with this enterprise-ready orchestration framework
First, set the environment variable for your AI Services:
Azure OpenAI:
export AZURE_OPENAI_API_KEY=AAA....
or OpenAI directly:
export OPENAI_API_KEY=sk-...
Enhance your agent with custom tools (plugins) and structured output:
import asyncio
from typing import Annotated
from pydantic import BaseModel
from semantic_kernel.agents import ChatCompletionAgent
from semantic_kernel.connectors.ai.open_ai import AzureChatCompletion, OpenAIChatPromptExecutionSettings
from semantic_kernel.functions import kernel_function, KernelArguments
class MenuPlugin:
@kernel_function(description="Provides a list of specials from the menu.")
def get_specials(self) -> Annotated[str, "Returns the specials from the menu."]:
return """
Special Soup: Clam Chowder
Special Salad: Cobb Salad
Special Drink: Chai Tea
"""
@kernel_function(description="Provides the price of the requested menu item.")
def get_item_price(
self, menu_item: Annotated[str, "The name of the menu item."]
) -> Annotated[str, "Returns the price of the menu item."]:
return "$9.99"
class MenuItem(BaseModel):
price: float
name: str
async def main():
# Configure structured output format
settings = OpenAIChatPromptExecutionSettings()
settings.response_format = MenuItem
# Create agent with plugin and settings
agent = ChatCompletionAgent(
service=AzureChatCompletion(),
name="SK-Assistant",
instructions="You are a helpful assistant.",
plugins=[MenuPlugin()],
arguments=KernelArguments(settings)
)
response = await agent.get_response(messages="What is the price of the soup special?")
print(response.content)
# Output:
# The price of the Clam Chowder, which is the soup special, is $9.99.
asyncio.run(main())
using System.ComponentModel;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Agents;
using Microsoft.SemanticKernel.ChatCompletion;
var builder = Kernel.CreateBuilder();
builder.AddAzureOpenAIChatCompletion(
Environment.GetEnvironmentVariable("AZURE_OPENAI_DEPLOYMENT"),
Environment.GetEnvironmentVariable("AZURE_OPENAI_ENDPOINT"),
Environment.GetEnvironmentVariable("AZURE_OPENAI_API_KEY")
);
var kernel = builder.Build();
kernel.Plugins.Add(KernelPluginFactory.CreateFromType<MenuPlugin>());
ChatCompletionAgent agent =
new()
{
Name = "SK-Assistant",
Instructions = "You are a helpful assistant.",
Kernel = kernel,
Arguments = new KernelArguments(new PromptExecutionSettings() { FunctionChoiceBehavior = FunctionChoiceBehavior.Auto() })
};
await foreach (AgentResponseItem<ChatMessageContent> response
in agent.InvokeAsync("What is the price of the soup special?"))
{
Console.WriteLine(response.Message);
}
sealed class MenuPlugin
{
[KernelFunction, Description("Provides a list of specials from the menu.")]
public string GetSpecials() =>
"""
Special Soup: Clam Chowder
Special Salad: Cobb Salad
Special Drink: Chai Tea
""";
[KernelFunction, Description("Provides the price of the requested menu item.")]
public string GetItemPrice(
[Description("The name of the menu item.")]
string menuItem) =>
"$9.99";
}
Semantic Kernel 是一个语义内核项目,现已更名为 Microsoft Agent Framework (MAF)。Microsoft Agent Framework 是语义内核的企业级替代品,提供稳定的 API 和长期支持。无论您正在构建单个助手还是orchestration,Microsoft Agent Framework 都是您的最佳选择。
Semantic Kernel 的关键功能包括:连接任何 LLM 的内置支持,包括 OpenAI、Azure OpenAI、Hugging Face 和 NVidia 等。它还提供了 Agent Framework,允许您构建模块化的 AI 代理。
Semantic Kernel 的系统要求包括:Python 3.10+、.NET 10.0+、Java JDK 17+ 和 Windows、macOS、Linux 等操作系统支持。
安装 Semantic Kernel 需要设置 AI 服务的环境变量,例如 Azure OpenAI 或 OpenAI。您还可以使用 Docker、pip 或源码进行部署。
Semantic Kernel 的使用教程包括快速入门和 API 参考文档。
Semantic Kernel 的 API 参考文档包括 C# API 参考和 Python API 参考。
Semantic Kernel 的工作流和模块说明包括 Agent with Plugins - Python 和 Agent with Plugin - .NET 等示例代码。
Semantic Kernel 的 FAQ 摘要包括常见问题和解决方案。
aiskill88点评:微软出品,架构成熟度高,文档完善,生态完整。是C#开发者构建AI应用的优选框架,适合企业级应用。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,semantic-kernel AI技能包 是一款质量优秀的AI工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | semantic-kernel |
| 原始描述 | 开源AI工具:Integrate cutting-edge LLM technology quickly and easily into your apps。⭐27.9k · C# |
| Topics | LLM集成企业AI框架多模型支持插件系统C#SDK |
| GitHub | https://github.com/microsoft/semantic-kernel |
| License | MIT |
| 语言 | C# |
收录时间:2026-05-18 · 更新时间:2026-05-19 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。