microsoft/Agents
TypeSpec
Captured source
source ↗microsoft/Agents
Description: The Microsoft 365 Agent SDK simplifies building full stack, multichannel, trusted agents for platforms including M365, Teams, Copilot Studio, and Webchat.
Language: TypeSpec
License: MIT
Stars: 955
Forks: 311
Open issues: 129
Created: 2024-11-04T18:46:37Z
Pushed: 2026-06-10T17:56:42Z
Default branch: main
Fork: no
Archived: no
README:
Microsoft 365 Agents SDK
With the Microsoft 365 Agents SDK, you can create agents deployable to channels of your choice, such as Microsoft 365 Copilot, Microsoft Teams, Web & Custom Apps and more, with scaffolding to handle the required communication. Developers can use the AI Services of their choice, and make the agents they build available using the channel management capabilities of the SDK.
Developers need the flexibility to integrate agents from any provider or technology stack into their enterprise systems. The Agents SDK simplifies the implementation of agentic patterns using the AI of their choice, allowing them to select one or more services, models, or agents to meet their specific requirements.
Use the Agents SDK to:
- Quickly build an agent 'container' with state, storage, and the ability to manage activities and events. Deploy this container across any channel, such as Microsoft 365 Copilot or Microsoft Teams.
- Implement agentic patterns without being restricted to a specific technology stack. The Agents SDK is agnostic regarding the AI you choose.
- Customize your agent to align with the specific behaviors of clients, such as Microsoft Teams.
Get Started
You can get started right here by scolling up and clicking the 'samples' folder in this repo, selecting your language and reviewing the samples list before picking which one you want to start with (QuickStart is recommended for fundamentals).
Microsoft 365 Copilot is one of many channels supported by this SDK, and a *Microsoft 365 Copilot subscription is *not* required* to get started with or use this SDK unless your working specifically with that channel (or others, that require a subscription/service to use their client).
C#, JavaScript, & Python Repository links
The source for the client libraries exists for the most part in repositories for each language. This repository is meant to be a jumping off point into those language specific repositories. Issues related to a specific language should be opened in the corresponding repository but cross cutting issues can be opened in this repository.
| Language | Repo | |:--------------------|:------------------------------:| | General (This repo) | [Agents Repository] | | C# /.NET | [Agents-for-net Repository] | | JavaScript | [Agents-for-js Repository] | | Python | [Agents-for-python Repository] |
Documentation
To learn more about the Agents SDK, you can read our official docs here: Agents SDK Documentation
Related SDKs and Agent Platforms
- Semantic Kernel. Semantic Kernel
is an SDK that integrates Large Language Models (LLMs) like OpenAI, Azure OpenAI, and Hugging Face with conventional programming languages like C#, Python, and Java. Semantic Kernel achieves this by allowing you to define plugins that can be chained together in just a few lines of code.
- Azure AI Foundry. Provides the core backend agent functionality, providing reasoning, retrieval augmentation, observability, among other core functions. Developers can leverage the Azure AI Agent Service or build their agent functionality with individual components from this SDK.
- Copilot Studio. Copilot Studio is an agent building platform that can be used with the Microsoft 365 Agents SDK to integrate your agent into your applications & create multi-agent patterns with Copilot Studio Agents. To get started, go to the samples folder in this repo and select the Copilot Studio Client sample in your chosen language.
The Microsoft 365 Agents SDK brings together core components to allow for developers to create, manage and utilize AI Services and third-party SDKs to power orchestration and develop custom agent logic functionality.
Using other services with the Agents SDK
Your use of other services in connection with the Microsoft 365 Agents SDK is governed by the respective agreements for those services, which may include codes of conduct and other restrictions
Contributing
Note for Microsoft internal developers
- Internal Microsoft Developers should join the Core identity group Agents SDK Contrib
Non-Microsoft developers
- This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit .
- When you submit a pull request, a CLA bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
Recommended VS Code Extensions
To ensure a consistent development environment, we recommend using the following VS Code extensions:
|Extension | Description | |----------|-------------| |ESLint|Integrates ESLint into VS Code. Allows you to find and fix problems in JavaScript code.| |GitHub Copilot Chat|[GitHub…
Excerpt shown — open the source for the full document.
Notability
notability 7.0/10New Microsoft agent framework, solid traction.
Microsoft has a repo signal matching infrastructure, safety and policy.