Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
__pycache__/
*.py[cod]
*$py.class

# test_usecases.py ubicado en tests/services
import pytest
from unittest.mock import Mock, patch
from app.services.usecases import ChatService
from app.domain import models
# C extensions
*.so

Expand Down
2 changes: 0 additions & 2 deletions app/domain/ports.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def save_chat(self, chat: models.Chat) -> None:
def get_chat(self, chat_id: str) -> models.Chat | None:
pass


class AgentPort(abc.ABC):
@abc.abstractmethod
def __call__(self, query: str) -> dict[str, Any]:
Expand All @@ -34,7 +33,6 @@ def set_memory_variables(self, history: list[ai.BaseMessage]) -> None:
def get_last_response(self) -> str:
...


class TranscriptionPort(ABC):
@abstractmethod
def transcribe_audio(self, audio_file: bytes) -> str:
Expand Down
1 change: 0 additions & 1 deletion app/services/usecases.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,5 @@ def _update_chat(self, chat: models.Chat) -> None:
class NoChatFound(Exception):
pass


class InputNotProvided(Exception):
pass
2 changes: 2 additions & 0 deletions htmlcov/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

243 changes: 243 additions & 0 deletions htmlcov/class_index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading