// Copyright (c) Microsoft. All rights reserved. using Microsoft.SemanticKernel.ChatCompletion; namespace ChatCompletion; /// /// Extensions methods for /// internal static class ChatCompletionServiceExtensions { /// /// Adds an wrapper to an instance of which will use /// the provided instance of to reduce the size of /// the before sending it to the model. /// /// Instance of /// Instance of public static IChatCompletionService UsingChatHistoryReducer(this IChatCompletionService service, IChatHistoryReducer reducer) { return new ChatCompletionServiceWithReducer(service, reducer); } }