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 added the
State
Unverified
label 2026-04-02 18:17:10 +00:00
freemo self-assigned this 2026-04-02 18:45:13 +00:00
freemo added the
Priority
Backlog
label 2026-04-02 19:29:12 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cleveragents/cleveragents-core#1413