Share via


Templates.ExpandTemplate(String, Object, EvaluationOptions) Method

Definition

Expands a template with given name and scope. Return all possible responses instead of random one.

public System.Collections.Generic.IList<object> ExpandTemplate (string templateName, object scope = default, Microsoft.Bot.Builder.LanguageGeneration.EvaluationOptions opt = default);
member this.ExpandTemplate : string * obj * Microsoft.Bot.Builder.LanguageGeneration.EvaluationOptions -> System.Collections.Generic.IList<obj>
Public Function ExpandTemplate (templateName As String, Optional scope As Object = Nothing, Optional opt As EvaluationOptions = Nothing) As IList(Of Object)

Parameters

templateName
String

Template name to be evaluated.

scope
Object

State visible in the evaluation.

opt
EvaluationOptions

EvaluationOptions in expanding a template.

Returns

Expanded result.

Applies to