AgentSkillsProvider.AllToolsAutoApprovalRule Property

Definition

Gets an auto-approval rule that approves all skill tools, including the script execution tool (RunSkillScriptToolName).

public static Func<Microsoft.Extensions.AI.FunctionCallContent,System.Threading.Tasks.ValueTask<bool>> AllToolsAutoApprovalRule { get; }
static member AllToolsAutoApprovalRule : Func<Microsoft.Extensions.AI.FunctionCallContent, System.Threading.Tasks.ValueTask<bool>>
Public Shared ReadOnly Property AllToolsAutoApprovalRule As Func(Of FunctionCallContent, ValueTask(Of Boolean))

Property Value

Remarks

This rule only applies when approval is enabled for the matching tools in AgentSkillsProviderOptions. When skill tools require approval, add this rule to AutoApprovalRules to automatically approve every skill tool that requires approval without prompting the user.

The rule matches on the tool name, returning true for any skill tool and false for all other tool calls so that subsequent rules continue to be evaluated.

Applies to