zhou zhou
17 小时以前 05148eeef860d33232874a640dbd67ba43ac5686
rsf-server/src/main/java/com/vincent/rsf/server/ai/service/AiChatMemoryService.java
@@ -3,6 +3,8 @@
import com.vincent.rsf.server.ai.dto.AiChatMemoryDto;
import com.vincent.rsf.server.ai.dto.AiChatMessageDto;
import com.vincent.rsf.server.ai.dto.AiChatSessionDto;
import com.vincent.rsf.server.ai.dto.AiChatSessionPinRequest;
import com.vincent.rsf.server.ai.dto.AiChatSessionRenameRequest;
import com.vincent.rsf.server.ai.entity.AiChatSession;
import java.util.List;
@@ -11,11 +13,19 @@
    AiChatMemoryDto getMemory(Long userId, Long tenantId, String promptCode, Long sessionId);
    List<AiChatSessionDto> listSessions(Long userId, Long tenantId, String promptCode);
    List<AiChatSessionDto> listSessions(Long userId, Long tenantId, String promptCode, String keyword);
    AiChatSession resolveSession(Long userId, Long tenantId, String promptCode, Long sessionId, String titleSeed);
    void saveRound(AiChatSession session, Long userId, Long tenantId, List<AiChatMessageDto> memoryMessages, String assistantContent);
    void removeSession(Long userId, Long tenantId, Long sessionId);
    AiChatSessionDto renameSession(Long userId, Long tenantId, Long sessionId, AiChatSessionRenameRequest request);
    AiChatSessionDto pinSession(Long userId, Long tenantId, Long sessionId, AiChatSessionPinRequest request);
    void clearSessionMemory(Long userId, Long tenantId, Long sessionId);
    void retainLatestRound(Long userId, Long tenantId, Long sessionId);
}