Downloads · 30 days
11
16% of all-time downloads
taran1812/agentguard-decision-distilbert
agentguard-decision-distilbert is a text classification model from taran1812. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This model is the four-way decision classifier used by AgentGuard, a policy-aware AI agent guardrail for evaluating tool execution requests.
Downloads · 30 days
11
16% of all-time downloads
All-time downloads
70
Public
Parameters
67M
1.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
This model is the four-way decision classifier used by AgentGuard, a policy-aware AI agent guardrail for evaluating tool execution requests.
It predicts one of:
ALLOWBLOCKESCALATE_TO_HUMANREWRITE_REQUIREDThe model consumes a formatted input containing:
This model is intended for research, portfolio demonstration, and prototyping of policy-aware guardrails for LLM/AI agent tool execution.
Example use cases:
This model should not be used as a sole production authorization or compliance mechanism.
| Label | Meaning |
|---|---|
ALLOW | Safe and policy-compliant |
BLOCK | Unsafe, prohibited, or malicious |
ESCALATE_TO_HUMAN | High-impact, approval-gated, or human-review required |
REWRITE_REQUIRED | Request may be legitimate but is too vague or not safely executable |
The model was evaluated on a held-out test split from a 2,550-example synthetic enterprise policy/tool dataset.
| Metric | Score |
|---|---|
| Accuracy | 0.8300 |
| Macro F1 | 0.8243 |
| Weighted F1 | 0.8269 |
| Label | F1 |
|---|---|
ALLOW | 0.99 |
BLOCK | 0.78 |
ESCALATE_TO_HUMAN | 0.86 |
REWRITE_REQUIRED | 0.66 |
| Model | Accuracy | Macro F1 | Weighted F1 |
|---|---|---|---|
| TF-IDF + Logistic Regression | 0.8000 | 0.7960 | 0.7987 |
| AgentGuard Decision DistilBERT | 0.8300 | 0.8243 | 0.8269 |
The training dataset was a custom synthetic policy/tool execution corpus built specifically for AgentGuard.
| Attribute | Value |
|---|---|
| Base model | distilbert-base-uncased |
| Architecture | Sequence classification |
| Number of labels | 4 |
| Language | English |
| Library | Transformers |
USER_REQUEST:
Refund $8,500 to customer ACCT-9012 due to a billing dispute.
PROPOSED_TOOL:
issue_refund
TOOL_ARGUMENTS:
{"amount": 8500, "customer_id": "ACCT-9012"}
POLICY_CONTEXT:
Refunds above $1,000 require manager approval.
ESCALATE_TO_HUMAN
REWRITE_REQUIRED is the most semantically ambiguous class and has the lowest class-level F1.Use this model together with the companion AgentGuard risk classifier and a deterministic decision layer that applies:
This model was built as part of the AgentGuard project by Taran Patel.