import { resolveChatWrapperBasedOnModel } from "../chatWrappers/resolveChatWrapperBasedOnModel.js";
import { GeneralChatWrapper } from "../chatWrappers/GeneralChatWrapper.js";
export function resolveChatWrapper(chatWrapper, model) {
    if (chatWrapper === "auto") {
        const chatWrapper = resolveChatWrapperBasedOnModel({
            bosString: model.tokens.bosString,
            filename: model.filename,
            typeDescription: model.typeDescription
        });
        if (chatWrapper != null)
            return new chatWrapper();
        return new GeneralChatWrapper();
    }
    return chatWrapper;
}
//# sourceMappingURL=resolveChatWrapper.js.map