package com.hertz.modules.ai.service;

import com.hertz.modules.ai.entity.Conversation;
import com.hertz.modules.ai.entity.Message;
import java.util.List;

public interface ConversationService {
    Conversation createConversation(String title, Long userId);
    List<Conversation> getConversations(Long userId);
    void deleteConversation(Long id, Long userId);
    List<Conversation> searchConversations(String query, Long userId);
    Message saveMessage(Long conversationId, String role, String content, Long userId);
    List<Message> getMessages(Long conversationId, Long userId);
    List<Message> getRecentMessages(Long conversationId, Long userId, int limit);
    Conversation getConversation(Long id, Long userId);
    void updateConversationTitle(Long id, String title, Long userId);
}
