EmbeddingToolReductionStrategy.IsRequiredTool Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a function that determines whether a tool is required (always included).
public:
property Func<Microsoft::Extensions::AI::AITool ^, bool> ^ IsRequiredTool { Func<Microsoft::Extensions::AI::AITool ^, bool> ^ get(); void set(Func<Microsoft::Extensions::AI::AITool ^, bool> ^ value); };
public Func<Microsoft.Extensions.AI.AITool,bool> IsRequiredTool { get; set; }
member this.IsRequiredTool : Func<Microsoft.Extensions.AI.AITool, bool> with get, set
Public Property IsRequiredTool As Func(Of AITool, Boolean)
Property Value
Remarks
If this returns true, the tool is included regardless of ranking and does not count against the configured non-required tool limit. A tool explicitly named by RequiredChatToolMode (when RequiredFunctionName is non-null) is also treated as required, independent of this delegate's result.