Coverage for src/app/usecases/save_conversation_title_useCase.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.7.0, created at 2025-04-02 22:46 +0200

1from abc import ABC, abstractmethod 

2from models.conversation_model import ConversationModel 

3 

4class SaveConversationTitleUseCase(ABC): 

5 

6 @abstractmethod 

7 def save_conversation_title(self, conversation: ConversationModel) -> int: 

8 """ 

9 Save a conversation title by its ID. 

10 Args: 

11 conversation (ConversationModel): The conversation model containing the ID and title. 

12 Returns: 

13 int: The ID of the updated conversation. 

14 """ 

15