Interface SafetyAttributes

Safety attributes of a GeneratedImage or the user-provided prompt.

interface SafetyAttributes {
    categories?: string[];
    contentType?: string;
    scores?: number[];
}

Properties

categories?: string[]

List of RAI categories.

contentType?: string

Internal use only.

scores?: number[]

List of scores of each categories.