Språk

ChatResponseExtensions Klass

Definition

Tillhandahåller tilläggsmetoder för att arbeta med ChatResponse och ChatResponseUpdate instanser.

public ref class ChatResponseExtensions abstract sealed
public static class ChatResponseExtensions
type ChatResponseExtensions = class
Public Module ChatResponseExtensions
Arv
ChatResponseExtensions

Metoder

Name Description
AddMessages(IList<ChatMessage>, ChatResponse)

Lägger till alla meddelanden från response i list.

AddMessages(IList<ChatMessage>, ChatResponseUpdate, Func<AIContent,Boolean>)

Konverterar update till en ChatMessage instans och lägger till den i list.

AddMessages(IList<ChatMessage>, IEnumerable<ChatResponseUpdate>)

Konverterar updates till instanser ChatMessage och lägger till dem i list.

AddMessagesAsync(IList<ChatMessage>, IAsyncEnumerable<ChatResponseUpdate>, CancellationToken)

Konverterar updates till instanser ChatMessage och lägger till dem i list.

ToChatResponse(IEnumerable<ChatResponseUpdate>)

Kombinerar ChatResponseUpdate instanser till en enda ChatResponse.

ToChatResponseAsync(IAsyncEnumerable<ChatResponseUpdate>, CancellationToken)

Kombinerar ChatResponseUpdate instanser till en enda ChatResponse.

Gäller för