Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NLUAdapter

NLU adapter class, extended to connect bBot with NLU platform.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new NLUAdapter(bot: "/home/circleci/repo/src/index"): NLUAdapter
  • Create an adapter instance. Adapter modules should provide a .use method that accepts the bot, to provide to their adapter class constructor, returning the instance.

    Parameters

    • bot: "/home/circleci/repo/src/index"

      The current bBot instance

    Returns NLUAdapter

Properties

bot

bot: "/home/circleci/repo/src/index"

The current bBot instance

name

name: string = "nlu-adapter"

Methods

Abstract process

  • process(message: TextMessage): Promise<bot.NaturalLanguageResultsRaw | undefined>

Abstract shutdown

  • shutdown(): Promise<void>

Abstract start

  • start(): Promise<void>

Generated using TypeDoc