Skip to content

Commit

Permalink
Update plugin_manager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cobycloud committed Dec 27, 2024
1 parent aeef7a9 commit 3fc7473
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/swarmauri/swarmauri/plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ def get_entry_points(group_prefix="swarmauri."):

# Ensure the group attribute exists and matches the prefix
if hasattr(ep, "group") and ep.group.startswith(group_prefix):
logger.debug(f"Match found: {ep}")
namespace = ep.group[len(group_prefix):]
logger.debug(f"Grouped Namespace: {namespace}")
grouped_entry_points.setdefault(namespace, []).append(ep)

logger.debug(f"Returning the following grouped_entry_points: {grouped_entry_points}")
Expand Down

0 comments on commit 3fc7473

Please sign in to comment.