2 references to IfLessThan
Microsoft.Extensions.AI (2)
ChatCompletion\FunctionInvokingChatClient.cs (1)
205
set => _maximumConsecutiveErrorsPerRequest = Throw.
IfLessThan
(value, 0);
ChatReduction\SummarizingChatReducer.cs (1)
71
_thresholdCount = Throw.
IfLessThan
(threshold ?? 0, min: 0, nameof(threshold));