Skip to main content

Constructors

Interfaces


Constructors

constructor

new SafetyResult(result: SafetyResultInterface): SafetyResult
Creates a new SafetyResult instance.

Parameters

result
SafetyResultInterface
required
The safety evaluation result data.

Returns

SafetyResult

Interfaces

SafetyResultInterface

Interface representing a safety evaluation result.

Properties

isSafe: boolean Whether the content is considered safe text: string The text that was evaluated for safety classes?: string[] Optional classification results that triggered safety violations keywordMatches?: KeywordMatchInterface[] Optional keyword matches that triggered safety violations