import { AiConversation } from '../entities/ai-conversation.entity';

export interface IConversationRepository {
  findById(id: string): Promise<AiConversation | null>;
  findBySessionId(sessionId: string): Promise<AiConversation | null>;
  findByUserId(userId: string, skip: number, take: number): Promise<[AiConversation[], number]>;
  save(conversation: AiConversation): Promise<AiConversation>;
  countByUserId(userId: string): Promise<number>;
}

export const CONVERSATION_REPOSITORY = Symbol('IConversationRepository');
