Refactor: Simplify complex logic in actor/config.py #1395

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

The logic for parsing v2 actor configs in src/cleveragents/actor/config.py is complex and deeply nested. The _extract_v2_actor and _extract_v2_options methods are hard to read and understand. This is a sign of technical debt and should be refactored to be more modular and easier to maintain.

The _restore_template_syntax function is also a bit of a hack. It's replacing placeholders with the original template syntax. This could be made more robust by using a proper template engine that supports this kind of transformation.

This file needs a lot of work. This should be refactored to be more modular and easier to maintain.

The logic for parsing v2 actor configs in `src/cleveragents/actor/config.py` is complex and deeply nested. The `_extract_v2_actor` and `_extract_v2_options` methods are hard to read and understand. This is a sign of technical debt and should be refactored to be more modular and easier to maintain. The `_restore_template_syntax` function is also a bit of a hack. It's replacing placeholders with the original template syntax. This could be made more robust by using a proper template engine that supports this kind of transformation. This file needs a lot of work. This should be refactored to be more modular and easier to maintain.
freemo self-assigned this 2026-04-02 18:45:15 +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#1395
No description provided.