LanguageGenerator interface

Defines interface for a Language Generator system to bind to text.

Methods

generate(DialogContext, string, D)

Method to bind data to string.

Method Details

generate(DialogContext, string, D)

Method to bind data to string.

function generate(dialogContext: DialogContext, template: string, data: D): Promise<T>

Parameters

dialogContext

DialogContext

DialogContext.

template

string

Template.

data

D

Data to bind to.

Returns

Promise<T>

Result of rendering template using data.