Coverage for src/app/ports/get_conversation_port.py: 100%
5 statements
« prev ^ index » next coverage.py v7.7.0, created at 2025-04-02 22:46 +0200
« 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
4class GetConversationPort(ABC):
5 """
6 GetConversationPort is an interface for getting a conversation by its ID.
7 """
9 @abstractmethod
10 def get_conversation(self, conversation: ConversationModel) -> ConversationModel:
11 """
12 Get a conversation by its model.
13 Args:
14 conversation (ConversationModel): The conversation model.
15 Returns:
16 ConversationModel: The conversation model.
17 """