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

Hierarchy (view full)

Properties

llm: BaseLLM
handlePromptGuardrailViolation?: ((violation) => LLMMessage)

Type declaration

    • (violation): LLMMessage
    • Parameters

      • violation: GuardrailResponse

      Returns LLMMessage

handleResponseGuardrailViolation?: ((violation) => LLMMessage)

Type declaration

    • (violation): LLMMessage
    • Parameters

      • violation: GuardrailResponse

      Returns LLMMessage

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

Generated using TypeDoc