interface LayerupSecurityOptions {
    llm: BaseLLM;
    handlePromptGuardrailViolation?: ((violation: GuardrailResponse) => LLMMessage);
    handleResponseGuardrailViolation?: ((violation: GuardrailResponse) => LLMMessage);
    layerupApiBaseUrl?: string;
    layerupApiKey?: string;
    mask?: boolean;
    metadata?: Record<string, unknown>;
    promptGuardrails?: string[];
    responseGuardrails?: string[];
}

Hierarchy (view full)

Properties

llm: BaseLLM
handlePromptGuardrailViolation?: ((violation: GuardrailResponse) => LLMMessage)
handleResponseGuardrailViolation?: ((violation: GuardrailResponse) => LLMMessage)
layerupApiBaseUrl?: string
layerupApiKey?: string
mask?: boolean
metadata?: Record<string, unknown>
promptGuardrails?: string[]
responseGuardrails?: string[]