@microsoft/agents-hosting-teams
Version:
Microsoft 365 Agents SDK for JavaScript
37 lines (28 loc) • 791 B
Markdown
This package contains Teams specific features, such as:
- Message Extensions
- Teams Meetings
- Teams SSO Flows
- Parse Activity with specific Teams features
```bash
npm install @microsoft/agents-hosting-teams
```
Use `TeamsCloudAdapter` and `TeamsActivityHandler` to subscribe to Teams specific events.
```ts
// index.ts
const authConfig: AuthConfiguration = loadAuthConfigFromEnv()
const adapter = new TeamsCloudAdapter(authConfig)
```
```ts
// agent.ts
export class TeamsMultiFeatureAgent extends TeamsActivityHandler {
constructor () {
super()
}
async handleTeamsMessagingExtensionQuery () {
// This function is intentionally left unimplemented. Provide your own implementation.
}
}
```