Show / Hide Table of Contents

Class AzureChatExtensions

Inheritance
System.Object
AzureChatExtensions
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.AI.OpenAI.dll
Syntax
public static class AzureChatExtensions

Methods

AddDataSource(ChatCompletionOptions, ChatDataSource)

Declaration
public static void AddDataSource (this OpenAI.Chat.ChatCompletionOptions options, Azure.AI.OpenAI.Chat.ChatDataSource dataSource);
Parameters
OpenAI.Chat.ChatCompletionOptions options

ChatDataSource dataSource

GetDataSources(ChatCompletionOptions)

Declaration
public static System.Collections.Generic.IReadOnlyList<Azure.AI.OpenAI.Chat.ChatDataSource> GetDataSources (this OpenAI.Chat.ChatCompletionOptions options);
Parameters
OpenAI.Chat.ChatCompletionOptions options

Returns
System.Collections.Generic.IReadOnlyList<ChatDataSource>

GetMessageContext(ChatCompletion)

Declaration
public static Azure.AI.OpenAI.Chat.ChatMessageContext GetMessageContext (this OpenAI.Chat.ChatCompletion chatCompletion);
Parameters
OpenAI.Chat.ChatCompletion chatCompletion

Returns
ChatMessageContext

GetMessageContext(StreamingChatCompletionUpdate)

Declaration
public static Azure.AI.OpenAI.Chat.ChatMessageContext GetMessageContext (this OpenAI.Chat.StreamingChatCompletionUpdate chatUpdate);
Parameters
OpenAI.Chat.StreamingChatCompletionUpdate chatUpdate

Returns
ChatMessageContext

GetRequestContentFilterResult(ChatCompletion)

Declaration
public static Azure.AI.OpenAI.RequestContentFilterResult GetRequestContentFilterResult (this OpenAI.Chat.ChatCompletion chatCompletion);
Parameters
OpenAI.Chat.ChatCompletion chatCompletion

Returns
RequestContentFilterResult

GetRequestContentFilterResult(StreamingChatCompletionUpdate)

Declaration
public static Azure.AI.OpenAI.RequestContentFilterResult GetRequestContentFilterResult (this OpenAI.Chat.StreamingChatCompletionUpdate chatUpdate);
Parameters
OpenAI.Chat.StreamingChatCompletionUpdate chatUpdate

Returns
RequestContentFilterResult

GetResponseContentFilterResult(ChatCompletion)

Declaration
public static Azure.AI.OpenAI.ResponseContentFilterResult GetResponseContentFilterResult (this OpenAI.Chat.ChatCompletion chatCompletion);
Parameters
OpenAI.Chat.ChatCompletion chatCompletion

Returns
ResponseContentFilterResult

GetResponseContentFilterResult(StreamingChatCompletionUpdate)

Declaration
public static Azure.AI.OpenAI.ResponseContentFilterResult GetResponseContentFilterResult (this OpenAI.Chat.StreamingChatCompletionUpdate chatUpdate);
Parameters
OpenAI.Chat.StreamingChatCompletionUpdate chatUpdate

Returns
ResponseContentFilterResult

GetUserSecurityContext(ChatCompletionOptions)

Declaration
public static Azure.AI.OpenAI.UserSecurityContext GetUserSecurityContext (this OpenAI.Chat.ChatCompletionOptions options);
Parameters
OpenAI.Chat.ChatCompletionOptions options

Returns
UserSecurityContext

SetNewMaxCompletionTokensPropertyEnabled(ChatCompletionOptions, Boolean)

Declaration
public static void SetNewMaxCompletionTokensPropertyEnabled (this OpenAI.Chat.ChatCompletionOptions options, bool newPropertyEnabled = true);
Parameters
OpenAI.Chat.ChatCompletionOptions options

System.Boolean newPropertyEnabled

SetUserSecurityContext(ChatCompletionOptions, UserSecurityContext)

Declaration
public static void SetUserSecurityContext (this OpenAI.Chat.ChatCompletionOptions options, Azure.AI.OpenAI.UserSecurityContext userSecurityContext);
Parameters
OpenAI.Chat.ChatCompletionOptions options

UserSecurityContext userSecurityContext

Back to top Azure SDK for .NET