@microsoft/agents-hosting-express
TypeScript icon, indicating that this package has built-in type declarations

1.0.13 • Public • Published

microsoft/agents-hosting-express

Overview

Provides integration to host the agent in Express using startServer

Usage

import { AgentApplication, TurnState } from '@microsoft/agents-hosting';
import { startServer } from '@microsoft/agents-hosting-express';

const app = new AgentApplication<TurnState>();
app.onMessage('hello', async (context, state) => {
  await context.sendActivity('Hello, world!');
});
startServer(app);

Readme

Keywords

Package Sidebar

Install

npm i @microsoft/agents-hosting-express

Weekly Downloads

182

Version

1.0.13

License

MIT

Unpacked Size

12.3 kB

Total Files

11

Last publish

Collaborators

  • microsoft1es