Table of Contents

Class InteractionSafetySetting

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

A safety setting for an interaction.

public sealed class InteractionSafetySetting
Inheritance
InteractionSafetySetting
Inherited Members
Extension Methods

Properties

Method

The blocking method (severity, probability).

[JsonPropertyName("method")]
public string? Method { get; set; }

Property Value

string

Threshold

The blocking threshold (block_low_and_above, block_medium_and_above, block_only_high, block_none, off).

[JsonPropertyName("threshold")]
public string? Threshold { get; set; }

Property Value

string

Type

The harm category (e.g. hate_speech, dangerous_content, harassment, sexually_explicit).

[JsonPropertyName("type")]
public string? Type { get; set; }

Property Value

string