Share via


ChatHistoryExtensions Class

Definition

Extension methods for chat history.

public static class ChatHistoryExtensions
type ChatHistoryExtensions = class
Public Module ChatHistoryExtensions
Inheritance
ChatHistoryExtensions

Methods

ReduceAsync(ChatHistory, IChatHistoryReducer, CancellationToken)

Returns the reduced history using the provided reducer without mutating the source history.

ReduceAsync(IReadOnlyList<ChatMessageContent>, IChatHistoryReducer, CancellationToken)

Returns the reduced history using the provided reducer without mutating the source history.

ReduceInPlaceAsync(ChatHistory, IChatHistoryReducer, CancellationToken)

Process history reduction and mutate the provided history in place.

Applies to