1 write to _toolLimit
Microsoft.Extensions.AI (1)
ToolReduction\EmbeddingToolReductionStrategy.cs (1)
91_toolLimit = Throw.IfLessThanOrEqual(toolLimit, min: 0);
4 references to _toolLimit
Microsoft.Extensions.AI (4)
ToolReduction\EmbeddingToolReductionStrategy.cs (4)
166Debug.Assert(_toolLimit > 0, "Expected the tool count limit to be greater than zero."); 168if (tools.Count <= _toolLimit) 187if (optionalTools.Length <= _toolLimit) 208var topTools = toolRankingInfoMemory.Slice(start: 0, length: requiredTools.Length + _toolLimit);