MCPcopy Create free account
hub / github.com/astercloud/aster / IsToolSafeForAutoApproval

Function IsToolSafeForAutoApproval

pkg/tools/interface.go:89–91  ·  view source on GitHub ↗

IsToolSafeForAutoApproval 判断工具是否可以自动批准

(tool Tool)

Source from the content-addressed store, hash-verified

87
88// IsToolSafeForAutoApproval 判断工具是否可以自动批准
89func IsToolSafeForAutoApproval(tool Tool) bool {
90 return GetAnnotations(tool).IsSafeForAutoApproval()
91}
92
93// GetToolRiskLevel 获取工具风险级别
94func GetToolRiskLevel(tool Tool) int {

Callers 1

Calls 2

GetAnnotationsFunction · 0.85
IsSafeForAutoApprovalMethod · 0.80

Tested by 1