共用方式為


RaiPolicyProperties Class

Definition

Azure OpenAI Content Filters properties.

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

Constructors

RaiPolicyProperties()

Initializes a new instance of RaiPolicyProperties.

Properties

BasePolicyName

Name of Rai policy.

ContentFilters

The list of Content Filters.

CustomBlocklists

The list of custom Blocklist.

Mode

Rai policy mode. The enum value mapping is as below: Default = 0, Deferred=1, Blocking=2, Asynchronous_filter =3. Please use 'Asynchronous_filter' after 2024-10-01. It is the same as 'Deferred' in previous version.

PolicyType

Content Filters policy type.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<RaiPolicyProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<RaiPolicyProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<RaiPolicyProperties>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RaiPolicyProperties>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<RaiPolicyProperties>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to