diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index e10602bd883..ff58fde2242 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -17,14 +17,12 @@
/docs/ @dotnet/dotnet-extensions-infra
/eng/ @dotnet/dotnet-extensions-infra
-/src/Libraries/Microsoft.Extensions.AI.Evaluation @dotnet/dotnet-extensions-ai-evaluation
-/src/Libraries/Microsoft.Extensions.AI.Evaluation.* @dotnet/dotnet-extensions-ai-evaluation
-/test/Libraries/Microsoft.Extensions.AI.Evaluation.* @dotnet/dotnet-extensions-ai-evaluation
-
/src/Libraries/Microsoft.Extensions.AI @dotnet/dotnet-extensions-ai
+/src/Libraries/Microsoft.Extensions.AI.Evaluation @dotnet/dotnet-extensions-ai-evaluation
/src/Libraries/Microsoft.Extensions.AI.* @dotnet/dotnet-extensions-ai
-/test/Libraries/Microsoft.Extensions.AI @dotnet/dotnet-extensions-ai
+/src/Libraries/Microsoft.Extensions.AI.Evaluation.* @dotnet/dotnet-extensions-ai-evaluation
/test/Libraries/Microsoft.Extensions.AI.* @dotnet/dotnet-extensions-ai
+/test/Libraries/Microsoft.Extensions.AI.Evaluation.* @dotnet/dotnet-extensions-ai-evaluation
/src/Libraries/Microsoft.Extensions.Caching.Hybrid @dotnet/dotnet-extensions-caching-hybrid
/src/Libraries/Microsoft.Extensions.Caching.Hybrid.* @dotnet/dotnet-extensions-caching-hybrid
diff --git a/src/Libraries/Microsoft.Extensions.AI.Evaluation.Quality/ChatConversationEvaluator.cs b/src/Libraries/Microsoft.Extensions.AI.Evaluation.Quality/ChatConversationEvaluator.cs
index 1b78258e15c..5469b93e005 100644
--- a/src/Libraries/Microsoft.Extensions.AI.Evaluation.Quality/ChatConversationEvaluator.cs
+++ b/src/Libraries/Microsoft.Extensions.AI.Evaluation.Quality/ChatConversationEvaluator.cs
@@ -214,7 +214,7 @@ await ParseEvaluationResponseAsync(
/// as part of the evaluation prompt.
///
///
- /// The remaining number of tokens available for the rendering additional content as part of the evaluation prompt.
+ /// The number of tokens available for the rendering additional content as part of the evaluation prompt.
///
///
/// A that specifies the and the
@@ -222,10 +222,12 @@ await ParseEvaluationResponseAsync(
///
/// A that can cancel the operation.
///
- /// A tuple containing a boolean indicating if there is sufficient remaining to render the supplied
- /// as part of the evaluation prompt and an int returning the remaining token budget.
+ /// A tuple containing a indicating whether there is sufficient
+ /// remaining to render the supplied as part of the
+ /// evaluation prompt, and an containing the remaining token budget that would be available
+ /// once this is rendered.
///
- protected virtual ValueTask<(bool tokenBudgetSufficient, int tokenBudgetRemaining)> CanRenderAsync(
+ protected virtual ValueTask<(bool canRender, int remainingTokenBudget)> CanRenderAsync(
ChatMessage message,
int tokenBudget,
ChatConfiguration chatConfiguration,
@@ -265,8 +267,7 @@ await ParseEvaluationResponseAsync(
}
else
{
- tokenBudget -= tokenCount;
- return new ValueTask<(bool, int)>((true, tokenBudget));
+ return new ValueTask<(bool, int)>((true, tokenBudget - tokenCount));
}
}