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)
166
Debug.Assert(
_toolLimit
> 0, "Expected the tool count limit to be greater than zero.");
168
if (tools.Count <=
_toolLimit
)
187
if (optionalTools.Length <=
_toolLimit
)
208
var topTools = toolRankingInfoMemory.Slice(start: 0, length: requiredTools.Length +
_toolLimit
);