package com.sonic.cow.service;

import com.byteplus.ark.runtime.model.completion.chat.ChatMessage;

import java.util.List;

public interface ChatMemoryService {

    /**
     * chat聊天历史数据获取
     * @param userId
     * @param aiId
     */
    List<ChatMessage> getHistory(Long userId, Long aiId);

    /**
     * 保存历史消息
     * @param userId
     * @param aiId
     * @param chatMessages
     */
    void saveHistory(Long userId, Long aiId, List<ChatMessage> chatMessages);

}
