Share via


IChatHistoryReducer Interface

Definition

Defines a contract for a reducing chat history.

public interface IChatHistoryReducer
type IChatHistoryReducer = interface
Public Interface IChatHistoryReducer
Derived

Methods

Equals(Object)

Each reducer shall override equality evaluation so that different reducers of the same configuration can be evaluated for equivalency.

GetHashCode()

Each reducer shall implement custom hash-code generation so that different reducers of the same configuration can be evaluated for equivalency.

ReduceAsync(IReadOnlyList<ChatMessageContent>, CancellationToken)

Optionally reduces the chat history.

Applies to