Coverage for src/app/ports/save_conversation_title_port.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 SaveConversationTitlePort(ABC): 

5 """ 

6 SaveConversationTitlePort is an interface for saving a conversation title by its ID. 

7 """ 

8 

9 @abstractmethod 

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

11 """ 

12 Save a conversation title by its ID. 

13 Args: 

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

15 Returns: 

16 int: The ID of the updated conversation. 

17 """