Hierarchy (view full)

Constructors

Properties

handlePromptGuardrailViolation: ((violation) => LLMMessage) = defaultGuardrailViolationHandler

Type declaration

    • (violation): LLMMessage
    • Parameters

      • violation: GuardrailResponse

      Returns LLMMessage

handleResponseGuardrailViolation: ((violation) => LLMMessage) = defaultGuardrailViolationHandler

Type declaration

    • (violation): LLMMessage
    • Parameters

      • violation: GuardrailResponse

      Returns LLMMessage

layerupApiBaseUrl: string = "https://api.uselayerup.com/v1"
layerupApiKey: string
llm: BaseLLM
mask: boolean = false
metadata: Record<string, unknown> = {}
promptGuardrails: string[] = []
responseGuardrails: string[] = []

Generated using TypeDoc