/** * Jailbreak detection guardrail module. * * Implements a conversation-aware jailbreak detector that leverages LLM analysis * to identify multi-turn escalation, manipulation, and adversarial tactics. * Aligns functionality with the Python guardrail by incorporating conversation history * and richer LLM guidance. */ import { z } from 'zod'; import { type CheckFn, type GuardrailLLMContext } from '../types'; import { LLMConfig } from './llm-base'; /** * Configuration schema for jailbreak detection. */ export declare const JailbreakConfig: z.ZodObject<{ model: z.ZodString; confidence_threshold: z.ZodDefault; system_prompt_details: z.ZodOptional; include_reasoning: z.ZodDefault; max_turns: z.ZodDefault; }, z.core.$strip>; export type JailbreakConfig = z.infer; /** * Context requirements for the jailbreak guardrail. */ export type JailbreakContext = GuardrailLLMContext; /** * Extended LLM output schema including rationale. */ export declare const JailbreakOutput: z.ZodObject<{ flagged: z.ZodBoolean; confidence: z.ZodNumber; reason: z.ZodString; }, z.core.$strip>; /** * Conversation-aware jailbreak detection guardrail. */ export declare const jailbreak: CheckFn; //# sourceMappingURL=jailbreak.d.ts.map