ContentSafetyServiceConfigurationExtensions.ToChatConfiguration Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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. |
ToChatConfiguration(ContentSafetyServiceConfiguration, ChatConfiguration)
Returns a ChatConfiguration that can be used to communicate with the Azure AI Foundry Evaluation service for performing content safety evaluations.
public static Microsoft.Extensions.AI.Evaluation.ChatConfiguration ToChatConfiguration(this Microsoft.Extensions.AI.Evaluation.Safety.ContentSafetyServiceConfiguration contentSafetyServiceConfiguration, Microsoft.Extensions.AI.Evaluation.ChatConfiguration? originalChatConfiguration = default);
static member ToChatConfiguration : Microsoft.Extensions.AI.Evaluation.Safety.ContentSafetyServiceConfiguration * Microsoft.Extensions.AI.Evaluation.ChatConfiguration -> Microsoft.Extensions.AI.Evaluation.ChatConfiguration
<Extension()>
Public Function ToChatConfiguration (contentSafetyServiceConfiguration As ContentSafetyServiceConfiguration, Optional originalChatConfiguration As ChatConfiguration = Nothing) As ChatConfiguration
Parameters
- contentSafetyServiceConfiguration
- ContentSafetyServiceConfiguration
An object that specifies configuration parameters such as the Azure AI project that should be used, and the credentials that should be used, when communicating with the Azure AI Foundry Evaluation service to perform content safety evaluations.
- originalChatConfiguration
- ChatConfiguration
The original ChatConfiguration, if any. If specified, the returned
ChatConfiguration will be based on originalChatConfiguration
, with the
ChatClient in originalChatConfiguration
being replaced with
a new IChatClient that can be used both to communicate with the AI model that
originalChatConfiguration
is configured to communicate with, as well as to communicate with
the Azure AI Foundry Evaluation service.
Returns
A ChatConfiguration that can be used to communicate with the Azure AI Foundry Evaluation service for performing content safety evaluations.
Applies to
ToChatConfiguration(ContentSafetyServiceConfiguration, IChatClient)
Returns a ChatConfiguration that can be used to communicate with the Azure AI Foundry Evaluation service for performing content safety evaluations.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::AI::Evaluation::ChatConfiguration ^ ToChatConfiguration(Microsoft::Extensions::AI::Evaluation::Safety::ContentSafetyServiceConfiguration ^ contentSafetyServiceConfiguration, Microsoft::Extensions::AI::IChatClient ^ originalChatClient);
public static Microsoft.Extensions.AI.Evaluation.ChatConfiguration ToChatConfiguration(this Microsoft.Extensions.AI.Evaluation.Safety.ContentSafetyServiceConfiguration contentSafetyServiceConfiguration, Microsoft.Extensions.AI.IChatClient originalChatClient);
static member ToChatConfiguration : Microsoft.Extensions.AI.Evaluation.Safety.ContentSafetyServiceConfiguration * Microsoft.Extensions.AI.IChatClient -> Microsoft.Extensions.AI.Evaluation.ChatConfiguration
<Extension()>
Public Function ToChatConfiguration (contentSafetyServiceConfiguration As ContentSafetyServiceConfiguration, originalChatClient As IChatClient) As ChatConfiguration
Parameters
- contentSafetyServiceConfiguration
- ContentSafetyServiceConfiguration
An object that specifies configuration parameters such as the Azure AI project that should be used, and the credentials that should be used, when communicating with the Azure AI Foundry Evaluation service to perform content safety evaluations.
- originalChatClient
- IChatClient
The original IChatClient. The returned ChatClient will be a
wrapper around originalChatClient
that can be used both to communicate with the AI model
that originalChatClient
is configured to communicate with, as well as to communicate with
the Azure AI Foundry Evaluation service.
Returns
A ChatConfiguration that can be used to communicate with the Azure AI Foundry Evaluation service for performing content safety evaluations.