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

Hierarchy (view full)

Properties

llm: LLM
handlePromptGuardrailViolation?: ((violation) => any)

Type declaration

    • (violation): any
    • Parameters

      • violation: GuardrailResponse

      Returns any

handleResponseGuardrailViolation?: ((violation) => any)

Type declaration

    • (violation): any
    • Parameters

      • violation: GuardrailResponse

      Returns any

layerupApiBaseUrl?: string
layerupApiKey?: string
mask?: boolean
metadata?: Record<string, unknown>
promptGuardrails?: string[]
responseGuardrails?: string[]

Generated using TypeDoc