27 references to IEvaluationTokenCounter
Microsoft.Extensions.AI.Evaluation (17)
ChatConfiguration.cs (5)
12/// Specifies the <see cref="IChatClient"/> and the <see cref="IEvaluationTokenCounter"/> that should be used when 17/// An <see cref="IEvaluationTokenCounter"/> that can be used to counts tokens present in evaluation prompts, or 20public sealed class ChatConfiguration(IChatClient chatClient, IEvaluationTokenCounter? tokenCounter = null) 28/// Gets an <see cref="IEvaluationTokenCounter"/> that can be used to counts tokens present in evaluation prompts. 34public IEvaluationTokenCounter? TokenCounter { get; } = tokenCounter;
CompositeEvaluator.cs (1)
92/// <see cref="IEvaluationTokenCounter"/> that should be used if one or more composed <see cref="IEvaluator"/>s use
EvaluatorExtensions.cs (4)
34/// <see cref="IEvaluationTokenCounter"/> that should be used if the evaluation is performed using an AI model. 77/// <see cref="IEvaluationTokenCounter"/> that should be used if the evaluation is performed using an AI model. 119/// <see cref="IEvaluationTokenCounter"/> that should be used if the evaluation is performed using an AI model. 167/// <see cref="IEvaluationTokenCounter"/> that should be used if the evaluation is performed using an AI model.
IEvaluationTokenCounter.cs (2)
12/// <see cref="IEvaluationTokenCounter"/> to ensure that the evaluation prompts they use do not exceed the specified 18/// <see cref="IEvaluationTokenCounter"/> from the <see cref="ML.Tokenizers.Tokenizer"/> for a given AI model.
IEvaluator.cs (1)
41/// <see cref="IEvaluationTokenCounter"/> that should be used if the evaluation is performed using an AI model.
TokenizerExtensions.cs (4)
19private sealed class TokenCounter(Tokenizer tokenizer, int inputTokenLimit) : IEvaluationTokenCounter 28/// Returns an <see cref="IEvaluationTokenCounter"/> given the <see cref="Tokenizer"/> and the 36/// An <see cref="IEvaluationTokenCounter"/> for a particular AI model / deployment. 38public static IEvaluationTokenCounter ToTokenCounter(this Tokenizer tokenizer, int inputTokenLimit)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (1)
Setup.cs (1)
28IEvaluationTokenCounter tokenCounter = tokenizer.ToTokenCounter(inputTokenLimit: 6000);
Microsoft.Extensions.AI.Evaluation.Quality (4)
ChatConversationEvaluator.cs (4)
64IEvaluationTokenCounter tokenCounter = chatConfiguration.TokenCounter; 199/// <see cref="IEvaluationTokenCounter"/> that this <see cref="IEvaluator"/> uses to perform the evaluation. 217IEvaluationTokenCounter? tokenCounter = chatConfiguration.TokenCounter; 325/// <see cref="IEvaluationTokenCounter"/> that this <see cref="IEvaluator"/> uses to perform the evaluation.
Microsoft.Extensions.AI.Evaluation.Reporting (4)
ReportingConfiguration.cs (2)
33/// <see cref="IEvaluationTokenCounter"/> that are used by AI-based <see cref="Evaluators"/> included in this 100/// <see cref="IEvaluationTokenCounter"/> that are used by AI-based <paramref name="evaluators"/> included in this
ScenarioRun.cs (1)
80/// <see cref="IEvaluationTokenCounter"/> that are used by AI-based <see cref="IEvaluator"/>s that are invoked as
Storage\DiskBasedReportingConfiguration.cs (1)
28/// <see cref="IEvaluationTokenCounter"/> that are used by AI-based <paramref name="evaluators"/> included in the
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Storage\AzureStorageReportingConfiguration.cs (1)
33/// <see cref="IEvaluationTokenCounter"/> that are used by AI-based <paramref name="evaluators"/> included in the