| | |
| | | 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; |
| | |
| | | |
| | | 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); |
| | | } |