Jaa


ChatConversationEvaluator.ParseEvaluationResponseAsync Method

Definition

Parses the evaluation result present in modelResponseForEvaluationPrompt into the EvaluationMetrics present in the supplied result.

protected:
 abstract System::Threading::Tasks::ValueTask ParseEvaluationResponseAsync(System::String ^ modelResponseForEvaluationPrompt, Microsoft::Extensions::AI::Evaluation::EvaluationResult ^ result, Microsoft::Extensions::AI::Evaluation::ChatConfiguration ^ chatConfiguration, System::Threading::CancellationToken cancellationToken);
protected abstract System.Threading.Tasks.ValueTask ParseEvaluationResponseAsync (string modelResponseForEvaluationPrompt, Microsoft.Extensions.AI.Evaluation.EvaluationResult result, Microsoft.Extensions.AI.Evaluation.ChatConfiguration chatConfiguration, System.Threading.CancellationToken cancellationToken);
abstract member ParseEvaluationResponseAsync : string * Microsoft.Extensions.AI.Evaluation.EvaluationResult * Microsoft.Extensions.AI.Evaluation.ChatConfiguration * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Protected MustOverride Function ParseEvaluationResponseAsync (modelResponseForEvaluationPrompt As String, result As EvaluationResult, chatConfiguration As ChatConfiguration, cancellationToken As CancellationToken) As ValueTask

Parameters

modelResponseForEvaluationPrompt
String

An AI-generated response that contains the result of the current evaluation.

result
EvaluationResult

An EvaluationResult that includes a collection of EvaluationMetrics that are supported by this IEvaluator.

chatConfiguration
ChatConfiguration

A ChatConfiguration that specifies the IChatClient and the IEvaluationTokenCounter that this IEvaluator uses to perform the evaluation.

cancellationToken
CancellationToken

A CancellationToken that can cancel the operation.

Returns

Applies to