-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into feature/Ingestion_pip…
…eline
- Loading branch information
Showing
20 changed files
with
171 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from ..common.singleton import Singleton | ||
from ..common.message_converters import ( | ||
from app.common.singleton import Singleton | ||
from app.common.message_converters import ( | ||
convert_iris_message_to_langchain_message, | ||
convert_langchain_message_to_iris_message, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from .error_response_dto import IrisErrorResponseDTO | ||
from .pipeline_execution_dto import PipelineExecutionDTO | ||
from .pipeline_execution_settings_dto import PipelineExecutionSettingsDTO | ||
from ..domain.tutor_chat.tutor_chat_pipeline_execution_dto import ( | ||
from app.domain.tutor_chat.tutor_chat_pipeline_execution_dto import ( | ||
TutorChatPipelineExecutionDTO, | ||
) | ||
from .iris_message import IrisMessage, IrisMessageRole | ||
from .pyris_message import PyrisMessage, IrisMessageRole |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from datetime import datetime | ||
from enum import Enum | ||
from typing import List | ||
|
||
from pydantic import BaseModel, Field | ||
|
||
from app.domain.data.message_content_dto import MessageContentDTO | ||
|
||
|
||
class IrisMessageRole(str, Enum): | ||
USER = "USER" | ||
ASSISTANT = "LLM" | ||
SYSTEM = "SYSTEM" | ||
|
||
|
||
class PyrisMessage(BaseModel): | ||
sent_at: datetime | None = Field(alias="sentAt", default=None) | ||
sender: IrisMessageRole | ||
contents: List[MessageContentDTO] = [] | ||
|
||
def __str__(self): | ||
return f"{self.sender.lower()}: {self.contents}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.