Skip to content

Conversation

@rock-n-shrimproll
Copy link
Collaborator

Description

Please describe here what changes are made and why.

Checklist

  • I have performed a self-review of the changes

List here tasks to complete in order to mark this PR as ready for review.

To Consider

  • Add tests (if functionality is changed)
  • Update API reference / tutorials / guides
  • Update CONTRIBUTING.md (if devel workflow is changed)
  • Update .ignore files, scripts (such as lint), distribution manifest (if files are added/deleted)
  • Search for references to changed entities in the codebase

- 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)
Copy link
Member

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.

"""


STAGES = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this Enum.

]


class ExceptionInfo(BaseModel, arbitrary_types_allowed=True):
Copy link
Member

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants