Share via


TaskAdherenceEvaluatorContext Constructors

Definition

Overloads

TaskAdherenceEvaluatorContext(AITool[])

Source:
TaskAdherenceEvaluatorContext.cs

Initializes a new instance of the TaskAdherenceEvaluatorContext class.

public:
 TaskAdherenceEvaluatorContext(... cli::array <Microsoft::Extensions::AI::AITool ^> ^ toolDefinitions);
public TaskAdherenceEvaluatorContext(params Microsoft.Extensions.AI.AITool[] toolDefinitions);
new Microsoft.Extensions.AI.Evaluation.Quality.TaskAdherenceEvaluatorContext : Microsoft.Extensions.AI.AITool[] -> Microsoft.Extensions.AI.Evaluation.Quality.TaskAdherenceEvaluatorContext
Public Sub New (ParamArray toolDefinitions As AITool())

Parameters

toolDefinitions
AITool[]

The set of tool definitions (see Tools) that were used when generating the model response that is being evaluated.

Note that at the moment, TaskAdherenceEvaluator only supports evaluating calls to tools that are defined as AIFunctions. Any other AITool definitions will be ignored.

Applies to

TaskAdherenceEvaluatorContext(IEnumerable<AITool>)

Source:
TaskAdherenceEvaluatorContext.cs

Initializes a new instance of the TaskAdherenceEvaluatorContext class.

public:
 TaskAdherenceEvaluatorContext(System::Collections::Generic::IEnumerable<Microsoft::Extensions::AI::AITool ^> ^ toolDefinitions);
public TaskAdherenceEvaluatorContext(System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.AITool> toolDefinitions);
new Microsoft.Extensions.AI.Evaluation.Quality.TaskAdherenceEvaluatorContext : seq<Microsoft.Extensions.AI.AITool> -> Microsoft.Extensions.AI.Evaluation.Quality.TaskAdherenceEvaluatorContext
Public Sub New (toolDefinitions As IEnumerable(Of AITool))

Parameters

toolDefinitions
IEnumerable<AITool>

The set of tool definitions (see Tools) that were used when generating the model response that is being evaluated.

Note that at the moment, TaskAdherenceEvaluator only supports evaluating calls to tools that are defined as AIFunctions. Any other AITool definitions will be ignored.

Applies to