PromptChain
Models & Types · AiDotNet.PromptEngineering
Composes multiple prompt templates into a single formatted prompt.
Constructors
| Constructor |
Summary |
PromptChain(string separator) |
Initializes a new prompt chain. |
Properties
| Property |
Summary |
IReadOnlyList<IPromptTemplate> Templates { get; } |
Gets the templates in this chain. |
Methods
| Method |
Summary |
PromptChain Add(IPromptTemplate template) |
Adds a prompt template to the chain. |
string Format(Dictionary<string, string> variables) |
Formats all templates in insertion order and joins the outputs. |