Properties
handlePromptGuardrailViolation
handlePromptGuardrailViolation: ((violation) => LLMMessage) = defaultGuardrailViolationHandler
Type declaration
- (violation): LLMMessage
Parameters
violation: GuardrailResponse
Returns LLMMessage
handleResponseGuardrailViolation
handleResponseGuardrailViolation: ((violation) => LLMMessage) = defaultGuardrailViolationHandler
Type declaration
- (violation): LLMMessage
Parameters
violation: GuardrailResponse
Returns LLMMessage
layerupApiBaseUrl
layerupApiBaseUrl: string = "https://api.uselayerup.com/v1"
layerupApiKey
layerupApiKey: string
mask
mask: boolean = false
metadata
metadata: Record<string, unknown> = {}
promptGuardrails
promptGuardrails: string[] = []
responseGuardrails
responseGuardrails: string[] = []