Refactor: Consolidate add and upsert_actor methods in actor/registry.py #1405

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

The add and upsert_actor methods in src/cleveragents/actor/registry.py have a lot of overlapping functionality. The add method calls upsert_actor internally, but it also does some of its own validation.

This could be simplified by having a single upsert method that handles both adding and updating actors.

The `add` and `upsert_actor` methods in `src/cleveragents/actor/registry.py` have a lot of overlapping functionality. The `add` method calls `upsert_actor` internally, but it also does some of its own validation. This could be simplified by having a single `upsert` method that handles both adding and updating actors.
freemo self-assigned this 2026-04-02 18:45:14 +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#1405
No description provided.