feat(security): add plugin-declared per-tool content policy

This commit is contained in:
JianFeeeee
2026-11-03 09:20:04 +08:00
parent 43eaa17b41
commit ef9368e5b8
8 changed files with 156 additions and 10 deletions

View File

@ -86,7 +86,8 @@ func (s *securityImpl) DeclareProfile(p pubsdk.SecurityProfile) error {
AllowTools: p.AllowTools,
DenyTools: p.DenyTools,
},
SensitiveWords: p.SensitiveWords,
SensitiveWords: p.SensitiveWords,
ToolSensitiveWords: p.ToolSensitiveWords,
}); err != nil {
return fmt.Errorf("security: declare profile %q: %w", name, err)
}