Table of Contents

Class SafetyAttributes

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Represents the safety attributes of a generated image.

public class SafetyAttributes
Inheritance
SafetyAttributes
Inherited Members
Extension Methods

Properties

Categories

Gets or sets the safety attribute name.

[JsonPropertyName("categories")]
public List<string>? Categories { get; set; }

Property Value

List<string>

ContentType

Gets or sets the content type being evaluated.

[JsonPropertyName("contentType")]
public string? ContentType { get; set; }

Property Value

string

Scores

Gets or sets the safety attribute score.

[JsonPropertyName("scores")]
public List<double>? Scores { get; set; }

Property Value

List<double>

See Also