█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

Semantic Kernel

किसी भी मॉडल के साथ काम करने वाला Microsoft का SDK, AI agents और multi-agent systems बनाने के लिए

Agent Frameworks & Buildersओपन सोर्स
भाषा
Python, C#, Java
लाइसेंस
MIT
संक्षेप में

Semantic Kernel क्या है?

Semantic Kernel किसी भी मॉडल के साथ काम करने वाला Microsoft का SDK, AI agents और multi-agent systems बनाने के लिए. यह Agents & Automation टूल्स की Agent Frameworks & Builders श्रेणी में आता है; ओपन सोर्स है, Python, C#, Java में लिखा गया है और MIT लाइसेंस के तहत है।

सारांश

Semantic Kernel, Microsoft का ओपन सोर्स SDK है, जिससे AI agents और multi-agent systems बनाए जा सकते हैं। यह मॉडल-अज्ञेय (model-agnostic) है, यानी इसे OpenAI, Azure OpenAI, Hugging Face, NVIDIA और Ollama, LM Studio या ONNX जैसे लोकल runtimes से जोड़ा जा सकता है। मुख्य concepts Python, .NET और Java तीनों में एक जैसे उपलब्ध हैं।

यह उन developers के लिए है जो stable APIs के साथ अपने applications में agents, tool-calling plugins, memory और planning जोड़ना चाहते हैं, और observability व security जैसी enterprise ज़रूरतों का भी ध्यान रखना चाहते हैं। आप एक सिंगल chat assistant से शुरू करके ऐसे workflows तक पहुँच सकते हैं जहाँ कई specialist agents मिलकर काम करते हैं।

ध्यान दें: प्रोजेक्ट के README के अनुसार Semantic Kernel का उत्तराधिकारी Microsoft Agent Framework है, जिसे Microsoft production-ready आगे का रास्ता बताता है। Semantic Kernel अभी भी इस्तेमाल किया जा सकता है, लेकिन नए प्रोजेक्ट शुरू करने से पहले official migration guide ज़रूर देख लें।

यह क्या करता है

  • मॉडल-अज्ञेय: OpenAI, Azure OpenAI, Hugging Face, NVIDIA और अन्य से कनेक्ट करें
  • Agent framework: tools/plugins, memory और planning के साथ agents बनाने के लिए
  • Multi-agent orchestration: साथ मिलकर काम करने वाले specialist agents के workflows के लिए
  • Plugins: native code functions, prompt templates, OpenAPI specs या MCP से
  • Vector DB integrations: Azure AI Search, Elasticsearch और Chroma सहित
  • Ollama, LM Studio या ONNX के ज़रिए लोकल model deployment; multimodal: text, vision और audio

शुरू करें

AI service की API key सेट करें, अपनी भाषा के लिए SDK इंस्टॉल करें, फिर एक बेसिक chat agent बनाएं। नीचे दिए उदाहरणों में Azure OpenAI का इस्तेमाल किया गया है।

API key सेट करें

अपना ऐप चलाने से पहले अपनी AI service के लिए environment variable export करें।

bashbash
export AZURE_OPENAI_API_KEY=AAA....
# or, for OpenAI directly:
export OPENAI_API_KEY=sk-...

SDK इंस्टॉल करें

pip से Python package इंस्टॉल करें। .NET के लिए इसके बजाय Microsoft.SemanticKernel packages जोड़ें।

bashbash
pip install semantic-kernel

बेसिक agent बनाएं (Python)

instructions के साथ ChatCompletionAgent शुरू करें और एक prompt का जवाब प्राप्त करें।

pythonpython
import asyncio
from semantic_kernel.agents import ChatCompletionAgent
from semantic_kernel.connectors.ai.open_ai import AzureChatCompletion

async def main():
    agent = ChatCompletionAgent(
        service=AzureChatCompletion(),
        name="SK-Assistant",
        instructions="You are a helpful assistant.",
    )
    response = await agent.get_response(messages="Write a haiku about Semantic Kernel.")
    print(response.content)

asyncio.run(main())

.NET विकल्प

.NET पर dotnet CLI से packages जोड़ें, फिर एक Kernel और ChatCompletionAgent बनाएं।

bashbash
dotnet add package Microsoft.SemanticKernel
dotnet add package Microsoft.SemanticKernel.Agents.Core

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • मौजूदा .NET, Python या Java ऐप में tool-calling plugins वाला chat assistant जोड़ें
  • कई specialist agents को एक multi-step workflow पर मिलकर काम करने के लिए orchestrate करें
  • Azure AI Search, Elasticsearch या Chroma जैसे vector DB पर आधारित RAG-style assistant बनाएं
  • Ollama या LM Studio के ज़रिए लोकल models पर agents का prototype बनाएं, बिना data को cloud API पर भेजे

How Semantic Kernel compares

Semantic Kernel alongside other open-source agent frameworks & builders tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
DeepSeek Harness★ 290kDeepSeek का ओपन एजेंट हार्नेस, जहाँ हर क्षमता एक प्लगइन है
AutoGPT★ 188kदोबारा इस्तेमाल होने वाले ब्लॉक्स से निरंतर AI एजेंट बनाएं, डिप्लॉय करें और चलाएं
DeerFlow★ 86.1kसब कुछ पहले से शामिल सुपर एजेंट हार्नेस, जिसमें स्किल्स, सब-एजेंट्स, सैंडबॉक्स और मेमोरी हैं
nanobot★ 50.5kWebUI, मेमोरी, MCP और चैट ऐप्स वाला सेल्फ-होस्टेड पर्सनल एजेंट रनटाइम
LangGraph★ 45.7kलंबे समय तक चलने वाले, stateful AI agents बनाने के लिए low-level orchestration framework
Agno★ 43.4kAI agent प्लेटफ़ॉर्म बनाने, चलाने और मैनेज करने के लिए Python SDK
AgentGPT★ 36.3kब्राउज़र में ही ऑटोनॉमस AI एजेंट बनाएं, कॉन्फ़िगर करें और डिप्लॉय करें
Semantic Kernel★ 28.8kकिसी भी मॉडल के साथ काम करने वाला Microsoft का SDK, AI agents और multi-agent systems बनाने के लिए