mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-09-07 17:58:55 +08:00
feat(go-agent): Ported retrieval node, added Keenable web search tool (#16396)
Ported retrieval node, added Keenable web search tool - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@@ -18,7 +18,7 @@ package security
|
||||
|
||||
// ThreatPattern represents a security threat detection pattern
|
||||
// Inspired by hermes-agent's skills_guard.py
|
||||
type ThreatPattern struct {
|
||||
type ThreatPattern struct {
|
||||
Pattern string // Regular expression pattern
|
||||
PatternID string // Unique identifier for this pattern
|
||||
Severity string // critical | high | medium | low
|
||||
@@ -271,9 +271,9 @@ var TrustedRepos = map[string]bool{
|
||||
// Format: [safe, caution, dangerous] -> action
|
||||
// Actions: allow, block, ask
|
||||
var InstallPolicy = map[string][3]string{
|
||||
"builtin": {"allow", "allow", "allow"}, // Official skills: always allow
|
||||
"trusted": {"allow", "allow", "block"}, // Trusted repos: caution allowed, dangerous blocked
|
||||
"community": {"allow", "block", "block"}, // Community: only safe allowed
|
||||
"builtin": {"allow", "allow", "allow"}, // Official skills: always allow
|
||||
"trusted": {"allow", "allow", "block"}, // Trusted repos: caution allowed, dangerous blocked
|
||||
"community": {"allow", "block", "block"}, // Community: only safe allowed
|
||||
}
|
||||
|
||||
// VerdictIndex maps verdict to array index
|
||||
|
||||
@@ -36,8 +36,8 @@ type Finding struct {
|
||||
type ScanResult struct {
|
||||
SkillName string
|
||||
Source string
|
||||
TrustLevel string // builtin | trusted | community
|
||||
Verdict string // safe | caution | dangerous
|
||||
TrustLevel string // builtin | trusted | community
|
||||
Verdict string // safe | caution | dangerous
|
||||
Findings []Finding
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user