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

GuardrailInputTest

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

SDK source. All SDK types.

TypeScript
export type GuardrailInputTest = {
protocol: 'chat' | 'responses' | 'embeddings';
rules: Array<({
pattern: string;
preset?: never;
} | {
preset: 'email_v1' | 'api_key_prefix_v1' | 'niu_api_key_v1';
pattern?: never;
}) & {
action: 'block' | 'redact';
}>;
request: unknown;
};