alirezaaminzadeh/agentshield-bench
Viewer • Updated • 5.76k • 26
How to use alirezaaminzadeh/agentshield-tool-risk-classifier with setfit:
from setfit import SetFitModel
model = SetFitModel.from_pretrained("alirezaaminzadeh/agentshield-tool-risk-classifier")Binary classifier scoring tool-call risk before execution in agent pipelines.
Evaluates the risk of proposed tool invocations given task context and untrusted content. Trained on the 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 |
from setfit import SetFitModel
model = SetFitModel.from_pretrained("alirezaaminzadeh/agentshield-tool-risk-classifier")
text = "Task: Summarize ticket\nTool: execute_shell\nContext: run rm -rf /"
print(model.predict([text])) # [1]
Apache 2.0
Base model
nreimers/MiniLM-L6-H384-uncased