Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astercloud/aster
/ GetToolRiskLevel
Function
GetToolRiskLevel
pkg/tools/interface.go:94–96 ·
view source on GitHub ↗
GetToolRiskLevel 获取工具风险级别
(tool Tool)
Source
from the content-addressed store, hash-verified
92
93
// GetToolRiskLevel 获取工具风险级别
94
func
GetToolRiskLevel(tool Tool) int {
95
return
GetAnnotations(tool).RiskLevel
96
}
97
98
// ToolExample 工具使用示例
99
// 用于向 LLM 展示工具的正确使用方式,提升复杂参数处理的准确率
Callers
1
TestGetToolRiskLevel
Function · 0.85
Calls
1
GetAnnotations
Function · 0.85
Tested by
1
TestGetToolRiskLevel
Function · 0.68