init(from:)
init(from decoder: any Decoder) throws
init(from decoder: any Decoder) throws
s6OpenAI17ModerationsResultV10ModerationV10CategoriesV4fromAGs7Decoder_p_tKcfc
What are these?6VWDC
import OpenAI
struct Categories
struct ModerationsResult
struct Moderation
protocol Decoder
A type that can decode values from a native format into in-memory representations.
let harassment: Bool
Content that expresses, incites, or promotes harassing language towards any target.
let harassmentThreatening: Bool
Harassment content that also includes violence or serious harm towards any target.
let hate: Bool
Content that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste.
let hateThreatening: Bool
Hateful content that also includes violence or serious harm towards the targeted group.
let selfHarm: Bool
Content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders.
let selfHarmInstructions: Bool
Content that encourages performing acts of self-harm, such as suicide, cutting, and eating disorders, or that gives instructions or advice on how to commit such acts.
let selfHarmIntent: Bool
Content where the speaker expresses that they are engaging or intend to engage in acts of self-harm, such as suicide, cutting, and eating disorders.
let sexual: Bool
Content meant to arouse sexual excitement, such as the description of sexual activity, or that promotes sexual services (excluding sex education and wellness).
let sexualMinors: Bool
Sexual content that includes an individual who is under 18 years old.
let violence: Bool
Content that promotes or glorifies violence or celebrates the suffering or humiliation of others.
let violenceGraphic: Bool
Violent content that depicts death, violence, or serious physical injury in extreme graphic detail.
func makeIterator() -> IndexingIterator<[(String, Bool)]>
enum CodingKeys