Skip to content
Niu DocsNiu 牛元文档
Dashboard控制台

GuardrailPolicy

Generated from the checked-in source. Do not edit this reference by hand.

SDK source. All SDK types.

TypeScript
export type GuardrailPolicy = {
schema_version: 1;
name: string;
models: GuardrailAccessRule;
providers: GuardrailAccessRule;
input_rules?: GuardrailInputTest['rules'];
input_detectors?: Array<{
detector: string;
configuration_fingerprint: string;
consent_to_external_processing: true;
}>;
image_detectors?: Array<{
detector: string;
configuration_fingerprint: string;
consent_to_image_processing: true;
}>;
output?: {
mode: 'buffered_full' | 'observe_only';
rules: GuardrailInputTest['rules'];
};
};