2 instantiations of TaskAdherenceEvaluatorContext
Microsoft.Extensions.AI.Evaluation.Integration.Tests (2)
AgentQualityEvaluatorTests.cs (2)
120new TaskAdherenceEvaluatorContext(toolDefinitions: _chatOptionsWithTools.Tools!); 180new TaskAdherenceEvaluatorContext(toolDefinitions: _chatOptionsWithTools.Tools!);
14 references to TaskAdherenceEvaluatorContext
Microsoft.Extensions.AI.Evaluation.Integration.Tests (2)
AgentQualityEvaluatorTests.cs (2)
119var toolDefinitionsForTaskAdherenceEvaluator = 179var toolDefinitionsForTaskAdherenceEvaluator =
Microsoft.Extensions.AI.Evaluation.Quality (12)
TaskAdherenceEvaluator.cs (9)
23/// <see cref="TaskAdherenceEvaluatorContext.ToolDefinitions"/>. 28/// <see cref="TaskAdherenceEvaluatorContext.ToolDefinitions"/> will be ignored. 105TaskAdherenceEvaluatorContext? context = 106additionalContext?.OfType<TaskAdherenceEvaluatorContext>().FirstOrDefault(); 112$"Supplied {nameof(TaskAdherenceEvaluatorContext)} did not contain any {nameof(TaskAdherenceEvaluatorContext.ToolDefinitions)}.")); 127$"The {nameof(modelResponse)} supplied for evaluation contained calls to tools that were not supplied via {nameof(TaskAdherenceEvaluatorContext)}.")); 133$"The {nameof(modelResponse)} supplied for evaluation contained calls to tools that were not included in the supplied {nameof(TaskAdherenceEvaluatorContext)}.")); 162TaskAdherenceEvaluatorContext? context)
TaskAdherenceEvaluatorContext.cs (3)
30/// Initializes a new instance of the <see cref="TaskAdherenceEvaluatorContext"/> class. 49/// Initializes a new instance of the <see cref="TaskAdherenceEvaluatorContext"/> class. 68/// <see cref="TaskAdherenceEvaluatorContext"/>.