共用方式為


ChatHistoryExtensions.ToDescending(ChatHistory) Method

Definition

Enumerates a chat history in descending order.

public static System.Collections.Generic.IEnumerable<Microsoft.SemanticKernel.ChatMessageContent> ToDescending(this Microsoft.SemanticKernel.ChatCompletion.ChatHistory history);
static member ToDescending : Microsoft.SemanticKernel.ChatCompletion.ChatHistory -> seq<Microsoft.SemanticKernel.ChatMessageContent>
<Extension()>
Public Iterator Function ToDescending (history As ChatHistory) As IEnumerable(Of ChatMessageContent)

Parameters

history
ChatHistory

The chat history to sort.

Returns

Applies to