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
namestringThe variable name. Case-insensitive.
Property Value
Examples
var context = new PromptTemplateContext();
context["greeting"] = "Hello";
object value = context["greeting"]; // "Hello"