PromptOptimizationResult

Models & Types · AiDotNet.Agentic.SelfImproving

The outcome of prompt optimization: the best-scoring prompt plus the full ranked list of candidates.

For Beginners

After trying each prompt on the practice questions, this tells you which prompt scored best (use that one) and shows every prompt’s score so you can see the spread.

Constructors

Constructor Summary
PromptOptimizationResult(string bestPrompt, double bestScore, IReadOnlyList<ScoredPrompt> candidates) Initializes a new result.

Properties

Property Summary
IReadOnlyList<ScoredPrompt> Candidates { get; } Gets all candidates with their scores, ranked best first.
double BestScore { get; } Gets the best prompt’s mean score.
string BestPrompt { get; } Gets the highest-scoring prompt.