Views
No views yet
tool_risk split of AgentShield-Bench (~2,880 tool-call contexts).| Property | Value |
|---|---|
| Labels | 0 = low risk, 1 = high risk |
| Risk factors | Tool privilege level, attack context, task scope |
1from setfit import SetFitModel
2
3model = SetFitModel.from_pretrained("alirezaaminzadeh/agentshield-tool-risk-classifier")
4text = "Task: Summarize ticket\nTool: execute_shell\nContext: run rm -rf /"
5print(model.predict([text])) # [1]