diff --git a/autogpt/models/command_registry.py b/autogpt/models/command_registry.py index 59d3ae77..f54f4adb 100644 --- a/autogpt/models/command_registry.py +++ b/autogpt/models/command_registry.py @@ -15,8 +15,12 @@ class CommandRegistry: directory. """ - commands: dict[str, Command] = {} - commands_aliases: dict[str, Command] = {} + commands: dict[str, Command] + commands_aliases: dict[str, Command] + + def __init__(self): + self.commands = {} + self.commands_aliases = {} def __contains__(self, command_name: str): return command_name in self.commands or command_name in self.commands_aliases