refactor: update risk levels in tool definitions and validation logic to remove sensitive level
This commit is contained in:
@@ -65,7 +65,7 @@ func (e *fakeMCPToolExecutor) Execute(_ context.Context, toolCode string, argume
|
||||
e.toolCode = toolCode
|
||||
e.arguments = arguments
|
||||
e.policy = policy
|
||||
return aitooling.Definition{Code: toolCode, RiskLevel: aitooling.RiskLevelSensitive}, e.result, e.err
|
||||
return aitooling.Definition{Code: toolCode, RiskLevel: aitooling.RiskLevelRead}, e.result, e.err
|
||||
}
|
||||
|
||||
var _ model.ToolCallingChatModel = (*scriptedToolCallingModel)(nil)
|
||||
|
||||
@@ -11,9 +11,8 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
RiskLevelRead = "read"
|
||||
RiskLevelWrite = "write"
|
||||
RiskLevelSensitive = "sensitive"
|
||||
RiskLevelRead = "read"
|
||||
RiskLevelWrite = "write"
|
||||
)
|
||||
|
||||
// Definition is the normalized, engine-independent description of a tool.
|
||||
|
||||
Reference in New Issue
Block a user