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