Skip to content
SkPy

Semantic Kernel (Python)

Microsoft Semantic Kernel for Python — plugins, function calling, agents, orchestrations, vector stores and MCP.

Microsoft’s SDK for building AI apps and agents in Python — a kernel that hosts AI services and plugins, native function calling, agents and multi-agent orchestrations, vector stores and MCP.

Install

Terminal window
pip install semantic-kernel==1.45.0

Version

semantic-kernel 1.45.0 · Python 3.10+ · checked 2026-11-19

Best for

Existing SK codebases, Azure-centric apps, plugin-based agents.

  • 1.45.0 (October 2026), 1.44.x (July–August 2026), 1.43.0 (June 2026), 1.42.0 (May 2026) — maintenance releases: connector and dependency updates and bug fixes. 1.42.0 raised the mcp requirement to 1.26 or later.
  • Earlier milestones still relevant today: planners removed (1.33.0); vector store API redesigned (1.34.0); KernelFunction.as_agent_framework_tool() added for Agent Framework interop (1.38.0), but it still targets a pre-1.0 Agent Framework API and fails with current releases.
  • AzureAIAgent needs azure-ai-projects 1.x (pip install "azure-ai-projects<2"); pip otherwise picks 2.x, which it does not support.

A plain pip install semantic-kernel works; --pre is not needed, even though one Azure dependency is a pre-release.

import asyncio
from semantic_kernel.agents import ChatCompletionAgent
from semantic_kernel.connectors.ai.open_ai import OpenAIChatCompletion
agent = ChatCompletionAgent(
service=OpenAIChatCompletion(ai_model_id="gpt-6-luna"), # reads OPENAI_API_KEY
name="Assistant",
instructions="You are a helpful assistant.",
)
async def main():
response = await agent.get_response(messages="What is 15 + 27?")
print(response.message.content)
asyncio.run(main())

Ready? Start Zero → Hero Step 1 →


DateFramework version (installed)Summary of changesReviewer
2026-10-21semantic-kernel 1.45.0Agent Framework bridge flagged as broken, with a link to the working wrapper. azure-ai-projects<2 requirement for AzureAIAgent noted. Links made root-absolute; Python diagrams merged into the shared diagrams page.
2026-10-21semantic-kernel 1.45.0Version now read from the site’s version registry. Minimal example fixed (ChatCompletionAgent takes service=, not service_id=; get_response(messages=...)). Removed the incorrect --pre install requirement. Agent Framework relationship stated per Microsoft’s support policy. Comprehensive guide rewritten and verified against an installed copy.Claude
2026-06-04semantic-kernel 1.43.0Version bump (symbols unverified).Claude routine
2026-05-14semantic-kernel 1.42.0Version bump; mcp>=1.26.0 noted.Claude routine
2026-04-22semantic-kernel 1.41.2Version corrected from a stale 1.36.0.Claude routine
2026-04-21semantic-kernel 1.41.2Index redesigned with Zero → Hero + Jump-to-topic grid.—

Other languages: .NET.