Partager via


RaiPolicyContentFilter Class

Definition

Azure OpenAI Content Filter.

public class RaiPolicyContentFilter : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CognitiveServices.Models.RaiPolicyContentFilter>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CognitiveServices.Models.RaiPolicyContentFilter>
type RaiPolicyContentFilter = class
    interface IJsonModel<RaiPolicyContentFilter>
    interface IPersistableModel<RaiPolicyContentFilter>
Public Class RaiPolicyContentFilter
Implements IJsonModel(Of RaiPolicyContentFilter), IPersistableModel(Of RaiPolicyContentFilter)
Inheritance
RaiPolicyContentFilter
Implements

Constructors

RaiPolicyContentFilter()

Initializes a new instance of RaiPolicyContentFilter.

Properties

Blocking

If blocking would occur.

Enabled

If the ContentFilter is enabled.

Name

Name of ContentFilter.

SeverityThreshold

Level at which content is filtered.

Source

Content source to apply the Content Filters.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<RaiPolicyContentFilter>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<RaiPolicyContentFilter>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<RaiPolicyContentFilter>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RaiPolicyContentFilter>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<RaiPolicyContentFilter>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to