Skip to content
プロジェクト

概要

Microsoft Teamsやその他のBot Frameworkチャネル向けに、AIベースのアプリケーションや拡張機能を構築するためのSDKです。

AI・機械学習

この数値の測り方

計測したスター増加

24時間
0
7日間
+2
15日間
+5
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

Welcome to the Teams SDK (Docs)

Teams SDK represents a fundamental reimagining of how Teams apps and AI agents are built, while maintaining compatibility with existing botframework-based agents. This new version focuses on developer experience, simplified architecture, and enhanced AI capabilities.

For a detailed explanation of the motivations and architectural decisions behind v2, please see our WHY.md document.

We have a new name!

We are very excited to announce that "Teams AI" is now officially "Teams SDK"! This change reflects our commitment to providing a comprehensive development framework for building all types of Teams applications, including AI-powered agents.

Code repositories per SDK language

The SDK code for each language are in individual repos:

For language-specific bugs or issues, please use the Issues tab in the respective language repository.

Quick start

The Teams Developer CLI makes it easy to bootstrap your first agent. First, install the CLI via NPM:

npm install -g @microsoft/teams.cli

Next, use the CLI to create your agent:

teams project new <typescript | csharp | python> quote-agent --template echo

For more information, follow our quickstart guide: C#, Typescript, Python

SDK

Microsoft Teams has a robust developer ecosystem with a broad suite of capabilities, now unified via Teams SDK. Whether you are building AI-powered agents (TS, C#, Python), Message Extensions (TS, C#, Python), embedded web applications, or Graph, Teams SDK has you covered.

Here is a simple example, which responds to incoming messages with information retrieved from Graph.

This example requires an OAuth connection named graph with Microsoft Graph User.Read permission. See the user authentication guide for setup.

import { App } from '@microsoft/teams.apps';
import { Client as GraphClient } from '@microsoft/teams.graph';
import * as endpoints from '@microsoft/teams.graph-endpoints';

const app = new App();
const graph = app.addOAuthFlow('graph');

app.on('message', async (ctx) => {
  const token = await graph.signIn(ctx);
  if (!token) return; // Sign-in is pending; completion is handled below.

  const client = new GraphClient({ token: () => token }, { baseUrlRoot: app.graphBaseUrl });
  const me = await client.call(endpoints.me.get);
  await ctx.send(`Hello, ${me.displayName} from Earth!`);
});

graph.onSignInComplete(async (ctx) => {
  await ctx.send('Signed in! Send another message to see your profile.');
});

// Start your application
(async () => {
  await app.start();
})();

For language-specific bugs or issues, please use the Issues tab in the respective language repository.

Important: v1 to v2 Transition Notice

This repository has transitioned from v1 to v2 as the main branch.

  • The main branch now contains v2 code, which was previously developed on the v2-preview branch.
  • The previous main branch (v1) has been moved to the release/v1 branch. We will continue to provide critical bug fixes and security patches for v1 on this branch.

Documentation

For comprehensive documentation, API references, and examples, visit our documentation site.

関連プロジェクトを探す

読み込み中…