LanguageGeneratorExtensions class

Extension methods for language generator.

Methods

useLanguageGeneration(DialogManager, string | LanguageGenerator)

Register default LG file or a language generator as default language generator.

useLanguagePolicy(DialogManager, LanguagePolicy)

Register language policy as default policy.

Method Details

useLanguageGeneration(DialogManager, string | LanguageGenerator)

Register default LG file or a language generator as default language generator.

static function useLanguageGeneration(dialogManager: DialogManager, lg?: string | LanguageGenerator): DialogManager

Parameters

dialogManager

DialogManager

The dialog manager to add language generator to.

lg

string | LanguageGenerator

LG resource id (default: main.lg) or language generator to be added.

Returns

DialogManager

dialog manager with language generator.

useLanguagePolicy(DialogManager, LanguagePolicy)

Register language policy as default policy.

static function useLanguagePolicy(dialogManager: DialogManager, policy: LanguagePolicy): DialogManager

Parameters

dialogManager

DialogManager

The dialog manager to add language policy to.

policy
LanguagePolicy

Policy to use.

Returns

DialogManager

dialog manager with language policy.