Skip to main content
This class encapsulates the result from safety checking operations, containing information about whether content is safe and any detected safety violations.

Constructor

new SafetyResult(
    text: string,
    isSafe: boolean
): SafetyResult
Creates a new SafetyResult instance.

Parameters

text (string) The text that was checked for safety. isSafe (boolean) Boolean indicating whether the text passed the safety check.

Returns

SafetyResult Overrides: AbstractApiDataType.constructor

Properties

text

readonly text: string
The text that was checked for safety.

isSafe

readonly isSafe: boolean
Boolean indicating whether the text passed the safety check.