# Variable SafetyCategorySchema`Const`

SafetyCategorySchema: ZodObject<
{
id: ZodEnum<
{
harm_physical: "harm_physical";
harm_emotional: "harm_emotional";
harm_financial: "harm_financial";
deception: "deception";
bias: "bias";
privacy: "privacy";
manipulation: "manipulation";
instruction_safety: "instruction_safety";
robustness: "robustness";
risk_awareness: "risk_awareness";
},
>;
name: ZodString;
description: ZodString;
defaultRiskLevel: ZodEnum<
{ low: "low"; medium: "medium"; high: "high"; critical: "critical" },
>;
parentId: ZodOptional<
ZodEnum<
{
harm_physical: "harm_physical";
harm_emotional: "harm_emotional";
harm_financial: "harm_financial";
deception: "deception";
bias: "bias";
privacy: "privacy";
manipulation: "manipulation";
instruction_safety: "instruction_safety";
robustness: "robustness";
risk_awareness: "risk_awareness";
},
>,
>;
criteria: ZodReadonly<
ZodArray<
ZodObject<
{
id: ZodString;
name: ZodString;
description: ZodString;
type: ZodEnum<
{
binary: "binary";
threshold: "threshold";
scaled: "scaled";
categorical: "categorical";
},
>;
weight: ZodNumber;
passThreshold: ZodOptional<ZodNumber>;
categories: ZodOptional<ZodReadonly<ZodArray<ZodString>>>;
},
$strip,
>,
>,
>;
exampleTestCases: ZodReadonly<
ZodArray<
ZodObject<
{
id: ZodString;
name: ZodString;
description: ZodString;
input: ZodString;
expectedOutcome: ZodEnum<
{
escalate: "escalate";
refuse: "refuse";
caution: "caution";
clarify: "clarify";
proceed: "proceed";
detect: "detect";
},
>;
riskLevel: ZodEnum<
{
low: "low";
medium: "medium";
high: "high";
critical: "critical";
},
>;
tags: ZodReadonly<ZodArray<ZodString>>;
context: ZodOptional<ZodString>;
},
$strip,
>,
>,
>;
failureModes: ZodReadonly<ZodArray<ZodString>>;
mitigationStrategies: ZodReadonly<ZodArray<ZodString>>;
},
$strip,
> = ...

Zod schema for SafetyCategory validation.

- Defined in packages/nexus-agents/src/security/safety-bench/safety-schemas.ts:164