Skip to content

.NET: Make all AgentSkillsProvider tools require approval by default and add auto-approval rules #6727

Description

@SergeyMenshykh

Summary

Make all functions in AgentSkillsProvider require approval by default and allow configuring auto-approval via ToolApprovalAgentOptions.

Changes

  • Wrap all three tools (load_skill, read_skill_resource, run_skill_script) with ApprovalRequiredAIFunction unconditionally
  • Add ReadOnlyToolsAutoApprovalRule and AllToolsAutoApprovalRule static properties (following the FileAccessProvider pattern)
  • Remove ScriptApproval property from AgentSkillsProviderOptions and UseScriptApproval from the builder
  • Add sample showing auto-approval configuration via UseToolApproval

Activity

  1. changed the title [-][.NET] Make all AgentSkillsProvider tools require approval by default and add auto-approval rules[/-] [+].NET: [.NET] Make all AgentSkillsProvider tools require approval by default and add auto-approval rules[/+] on Jun 25, 2026
  2. changed the title [-].NET: [.NET] Make all AgentSkillsProvider tools require approval by default and add auto-approval rules[/-] [+].NET: Make all AgentSkillsProvider tools require approval by default and add auto-approval rules[/+] on Jun 25, 2026
  3. added a commit that references this issue on Jun 25, 2026
    1ee1622
  4. moved this from In Progress to Done in Agent Frameworkon Jun 25, 2026
  5. added a commit that references this issue on Jun 25, 2026
    e3b64fd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

.NETUsage: [Issues, PRs], Target: .Net

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions