Table of Contents

Property this

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

this[string]

Gets or sets a variable value by name.

public object this[string name] { get; set; }

Parameters

name string

The variable name. Case-insensitive.

Property Value

object

The variable value, or null if not set.

Examples

var context = new PromptTemplateContext();
context["greeting"] = "Hello";
object value = context["greeting"]; // "Hello"