Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConversationLearner

Hierarchy

  • ConversationLearner

Index

Constructors

constructor

  • new ConversationLearner(modelId: string | undefined, maxTimeout?: undefined | number): ConversationLearner

Properties

clRunner

clRunner: CLRunner

Static clClient

clClient: CLClient

Static options

options: ICLOptions | null = null

Methods

AddCallback

  • Define an API callback that can be used by the Model

    Type parameters

    • T

    Parameters

    • callback: ICallbackInput<T>

      Object with callback name, optional logic function, and optional render function.

    Returns void

EntityDetectionCallback

InTrainingUI

  • InTrainingUI(turnContext: TurnContext): Promise<boolean>
  • Returns true is bot is running in the Training UI

    Parameters

    • turnContext: TurnContext

      BotBuilder Context

    Returns Promise<boolean>

OnSessionEndCallback

  • Provide a callback that will be invoked whenever a Session ends. Sessions can end because of a timeout or the selection of an EndSession activity

    Parameters

    • target: OnSessionEndCallback

      Callback of the form (context: BB.TurnContext, memoryManager: ClientMemoryManager, sessionEndState: CLM.SessionEndState, data: string | undefined) => Promise<string[] | undefined>

    Returns void

OnSessionStartCallback

  • Provide an callback that will be invoked whenever a Session is started

    Parameters

    • target: OnSessionStartCallback

      Callback of the form (context: BB.TurnContext, memoryManager: ClientMemoryManager) => Promise

    Returns void

SendResult

StartSession

  • StartSession(turnContext: TurnContext): Promise<void>
  • OPTIONAL: Sessions are started automatically, StartSession call is only needed if bot needs to start Conversation Learner Session with initial entity values. Results in clearing of existing Entity values, and a call to the OnSessionStartCallback

    Parameters

    • turnContext: TurnContext

      BotBuilder Context

    Returns Promise<void>

recognize

  • recognize(turnContext: TurnContext, force?: undefined | false | true): Promise<CLRecognizerResult | null>

Static Init

  • Init(options: ICLOptions, storage?: Storage | null): express.Router

Generated using TypeDoc