-
Notifications
You must be signed in to change notification settings - Fork 18
feat: processing stages in framework #439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
chatsky/core/ctx_utils.py
Outdated
| - no transition has been made during this turn yet (e.g. the turn is in the pre-transition step); | ||
| - no valid transition has been found (i.e. transitioned to fallback node). | ||
| """ | ||
| current_stage: Optional[Literal[*STAGES]] = Field(default=None, exclude=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can try to do Literal[*ExceptionInfo.model_fields.keys()] to avoid duplication in ExceptionInfo and STAGES.
chatsky/core/ctx_utils.py
Outdated
| """ | ||
|
|
||
|
|
||
| STAGES = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this Enum.
chatsky/core/ctx_utils.py
Outdated
| ] | ||
|
|
||
|
|
||
| class ExceptionInfo(BaseModel, arbitrary_types_allowed=True): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove exception info model, replace with Dict[Stages, List[Exception]], and defaultdict(list).
Description
Please describe here what changes are made and why.
Checklist
List here tasks to complete in order to mark this PR as ready for review.
To Consider
.ignorefiles, scripts (such aslint), distribution manifest (if files are added/deleted)