Documentation - v1.2.0-alpha.3
    Preparing search index...

    Module @microsoft/agents-hosting-express

    microsoft/agents-hosting-express

    Provides integration to host the agent in Express using startServer

    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);

    Functions

    startServer