Show / Hide Table of Contents

Class PiiDetectionConfig

The configuration details for personally identifiable information (PII) detection, in prompts and responses.

Inheritance
object
PiiDetectionConfig
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.GenerativeaiService.Models
Assembly: OCI.DotNetSDK.Generativeai.dll
Syntax
public class PiiDetectionConfig

Properties

IsEnabled

Declaration
[Required(ErrorMessage = "IsEnabled is required.")]
[JsonProperty(PropertyName = "isEnabled")]
public bool? IsEnabled { get; set; }
Property Value
Type Description
bool?

Whether to enable the PII detection feature.

Remarks

Required

Mode

Declaration
[JsonProperty(PropertyName = "mode")]
[JsonConverter(typeof(StringEnumConverter))]
public ContentModerationConfig.ModeEnum? Mode { get; set; }
Property Value
Type Description
ContentModerationConfig.ModeEnum?

The mode of operation for PII detection.

ModelId

Declaration
[JsonProperty(PropertyName = "modelId")]
public string ModelId { get; set; }
Property Value
Type Description
string

The OCID of the model used for the feature.

In this article
Back to top