ChatConversationEvaluator Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An abstract
base class that can be used to implement an AI-based IEvaluator.
public ref class ChatConversationEvaluator abstract : Microsoft::Extensions::AI::Evaluation::IEvaluator
public abstract class ChatConversationEvaluator : Microsoft.Extensions.AI.Evaluation.IEvaluator
type ChatConversationEvaluator = class
interface IEvaluator
Public MustInherit Class ChatConversationEvaluator
Implements IEvaluator
- Inheritance
-
ChatConversationEvaluator
- Derived
- Implements
Constructors
ChatConversationEvaluator() |
Properties
ChatOptions |
Gets the ChatOptions that this IEvaluator uses when performing evaluations. |
EvaluationMetricNames |
Identifies the Names of the EvaluationMetrics produced by this IEvaluator. |
IgnoresHistory |
Gets a value that indicates whether this IEvaluator considers the entire conversation history (in addition to the request and response being evaluated) as part of the evaluation it performs. |
SystemPrompt |
Gets the system prompt that this IEvaluator uses when performing evaluations. |
Methods
CanRenderAsync(ChatMessage, Int32, ChatConfiguration, CancellationToken) |
Determines if there is sufficient |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
EvaluateAsync(IEnumerable<ChatMessage>, ChatMessage, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken) |
Evaluates the supplied |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
InitializeResult() |
Returns an EvaluationResult that includes default values for all the EvaluationMetrics supported by this IEvaluator. |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ParseEvaluationResponseAsync(String, EvaluationResult, ChatConfiguration, CancellationToken) |
Parses the evaluation result present in |
RenderAsync(ChatMessage, CancellationToken) |
Renders the supplied |
RenderEvaluationPromptAsync(ChatMessage, ChatMessage, IEnumerable<ChatMessage>, IEnumerable<EvaluationContext>, CancellationToken) |
Renders the information present in the supplied parameters into a prompt that this IEvaluator uses to perform the evaluation. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Extension Methods
EvaluateAsync(IEvaluator, ChatMessage, ChatMessage, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken) |
Evaluates the supplied |
EvaluateAsync(IEvaluator, ChatMessage, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken) |
Evaluates the supplied |
EvaluateAsync(IEvaluator, String, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken) |
Evaluates the supplied |
EvaluateAsync(IEvaluator, String, String, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken) |
Evaluates the supplied |