Interface: PromptSafetyCheckResponse
Represents the safety status of a prompt
Properties
Property
Type
Description
isSafebooleanWhether the prompt is safe to use
reason?stringOptional reason why the prompt is unsafe. Only relevant when isSafe is false.
category?Optional category of the safety assessment. Only relevant when isSafe is false.
confidence?numberOptional confidence score of the safety check (0-1). Higher values indicate higher confidence in the safety assessment.