Share via


EmbeddingToolReductionStrategy.IsRequiredTool Property

Definition

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.

Applies to