Text Classification
setfit
English
security
tool-calling
agent

AgentShield Tool Risk Classifier

Binary classifier scoring tool-call risk before execution in agent pipelines.

Model Description

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

Usage

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]

License

Apache 2.0

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for alirezaaminzadeh/agentshield-tool-risk-classifier

Dataset used to train alirezaaminzadeh/agentshield-tool-risk-classifier

Space using alirezaaminzadeh/agentshield-tool-risk-classifier 1

Collection including alirezaaminzadeh/agentshield-tool-risk-classifier