Jaa


CompositeEvaluator Class

Definition

An IEvaluator that composes other IEvaluators to execute multiple (concurrent) evaluations on a supplied response.

public ref class CompositeEvaluator sealed : Microsoft::Extensions::AI::Evaluation::IEvaluator
public sealed class CompositeEvaluator : Microsoft.Extensions.AI.Evaluation.IEvaluator
type CompositeEvaluator = class
    interface IEvaluator
Public NotInheritable Class CompositeEvaluator
Implements IEvaluator
Inheritance
CompositeEvaluator
Implements

Constructors

CompositeEvaluator(IEnumerable<IEvaluator>)

Initializes a new CompositeEvaluator instance that composes the supplied IEvaluators.

CompositeEvaluator(IEvaluator[])

Initializes a new CompositeEvaluator instance that composes the supplied IEvaluators.

Properties

EvaluationMetricNames

Identifies the Names of all the EvaluationMetrics produced by the composed IEvaluators.

Methods

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 modelResponse and returns an EvaluationResult containing one or more EvaluationMetrics.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
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 modelResponse and returns an EvaluationResult containing one or more EvaluationMetrics.

EvaluateAsync(IEvaluator, ChatMessage, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken)

Evaluates the supplied modelResponse and returns an EvaluationResult containing one or more EvaluationMetrics.

EvaluateAsync(IEvaluator, String, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken)

Evaluates the supplied modelResponse and returns an EvaluationResult containing one or more EvaluationMetrics.

EvaluateAsync(IEvaluator, String, String, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken)

Evaluates the supplied modelResponse and returns an EvaluationResult containing one or more EvaluationMetrics.

Applies to