ChainOfThoughtBuilder

Helpers & Utilities · AiDotNet.PromptEngineering.Templates

Builder for constructing chain-of-thought templates fluently.

Constructors

Constructor Summary
ChainOfThoughtBuilder()

Methods

Method Summary
ChainOfThoughtBuilder AddExample(ChainOfThoughtExample example) Adds an example demonstrating step-by-step reasoning.
ChainOfThoughtBuilder AddExample(string question, string reasoning, string answer) Adds an example demonstrating step-by-step reasoning.
ChainOfThoughtBuilder WithContext(string context) Sets additional context for the question.
ChainOfThoughtBuilder WithQuestion(string question) Sets the question to reason about.
ChainOfThoughtTemplate Build() Builds the chain-of-thought template.