Table of Contents

Property Variables

Namespace
LMKit.TextGeneration.Prompts
Assembly
LM-Kit.NET.dll

Variables

Gets the names of all variables referenced in the template.

public IReadOnlyList<string> Variables { get; }

Property Value

IReadOnlyList<string>

Examples

var template = PromptTemplate.Parse("Hello {{name}}, you are {{role}}.");
foreach (string var in template.Variables)
{
    Console.WriteLine(var); // "name", "role"
}