Share via


ContentSafetyServiceConfiguration Class

Definition

Specifies configuration parameters such as the Azure AI project that should be used, and the credentials that should be used, when a ContentSafetyEvaluator communicates with the Azure AI Foundry Evaluation service to perform evaluations.

public ref class ContentSafetyServiceConfiguration sealed
public sealed class ContentSafetyServiceConfiguration
type ContentSafetyServiceConfiguration = class
Public NotInheritable Class ContentSafetyServiceConfiguration
Inheritance
ContentSafetyServiceConfiguration

Constructors

ContentSafetyServiceConfiguration(TokenCredential, String, String, String, HttpClient, Int32)

Specifies configuration parameters such as the Azure AI project that should be used, and the credentials that should be used, when a ContentSafetyEvaluator communicates with the Azure AI Foundry Evaluation service to perform evaluations.

Properties

Credential

Gets the Azure TokenCredential that should be used when authenticating requests.

HttpClient

Gets the HttpClient that should be used when communicating with the Azure AI Foundry Evaluation service.

ProjectName

Gets the name of the Azure AI project.

ResourceGroupName

Gets the name of the Azure resource group that contains the project identified by ProjectName.

SubscriptionId

Gets the ID of the Azure subscription that contains the project identified by ProjectName.

TimeoutInSecondsForRetries

Gets the timeout (in seconds) after which a ContentSafetyEvaluator should stop retrying failed attempts to communicate with the Azure AI Foundry Evaluation service when performing evaluations.

Extension Methods

ToChatConfiguration(ContentSafetyServiceConfiguration, ChatConfiguration)

Returns a ChatConfiguration that can be used to communicate with the Azure AI Foundry Evaluation service for performing content safety evaluations.

ToChatConfiguration(ContentSafetyServiceConfiguration, IChatClient)

Returns a ChatConfiguration that can be used to communicate with the Azure AI Foundry Evaluation service for performing content safety evaluations.

Applies to