-
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.
Implement text exercise chat pipeline
- Loading branch information
1 parent
6c79346
commit 52d6bf8
Showing
7 changed files
with
153 additions
and
31 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
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,5 @@ | ||
from app.domain.status.status_update_dto import StatusUpdateDTO | ||
|
||
|
||
class TextExerciseChatStatusUpdateDTO(StatusUpdateDTO): | ||
result: str = [] |
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,10 +1,11 @@ | ||
from pydantic import BaseModel, Field | ||
|
||
from domain import PipelineExecutionDTO | ||
from domain import PipelineExecutionDTO, PyrisMessage | ||
from domain.data.text_exercise_dto import TextExerciseDTO | ||
|
||
|
||
class TextExerciseChatPipelineExecutionDTO(BaseModel): | ||
execution: PipelineExecutionDTO | ||
exercise: TextExerciseDTO | ||
current_answer: str = Field(alias="currentAnswer") | ||
conversation: list[PyrisMessage] = Field(default=[]) | ||
current_submission: str = Field(alias="currentSubmission", default="") |
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