mirror of
https://gitcode.com/JianFeeeee/HomeAgent.git
synced 2026-11-06 17:27:31 +00:00
feat(security): add plugin-declared per-tool content policy
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user