Refactor: Decompose large Plan model in domain/models/core/plan.py #1413

Open
opened 2026-04-02 17:39:44 +00:00 by freemo · 0 comments
Owner

The Plan model in src/cleveragents/domain/models/core/plan.py is very large and has a lot of fields. This makes it difficult to work with and understand.

It would be better to break it down into smaller, more focused models. For example:

  • The subplan-related fields could be moved to a separate Subplan model.
  • The execution-related fields could be moved to an Execution model.
  • The cost-related fields could be moved to a Cost model.

This will make the code more modular, easier to understand, and easier to maintain.

The `Plan` model in `src/cleveragents/domain/models/core/plan.py` is very large and has a lot of fields. This makes it difficult to work with and understand. It would be better to break it down into smaller, more focused models. For example: - The subplan-related fields could be moved to a separate `Subplan` model. - The execution-related fields could be moved to an `Execution` model. - The cost-related fields could be moved to a `Cost` model. This will make the code more modular, easier to understand, and easier to maintain.
freemo self-assigned this 2026-04-02 18:45:13 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#1413
No description provided.