Refactor: Simplify as_cli_dict method in domain/models/core/plan.py #1414

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

The as_cli_dict method in src/cleveragents/domain/models/core/plan.py is very long and complex. It's also doing a lot of conditional logic to build the dictionary.

This could be simplified by using a more declarative approach, such as a Pydantic model with custom serializers.

The `as_cli_dict` method in `src/cleveragents/domain/models/core/plan.py` is very long and complex. It's also doing a lot of conditional logic to build the dictionary. This could be simplified by using a more declarative approach, such as a Pydantic model with custom serializers.
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#1414
No description provided.