mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 22:14:28 +01:00
Add documentation
This commit is contained in:
@@ -6,6 +6,7 @@ class Singleton(type):
|
||||
_instances = {}
|
||||
|
||||
def __call__(cls, *args, **kwargs):
|
||||
"""Call method for the singleton metaclass."""
|
||||
if cls not in cls._instances:
|
||||
cls._instances[cls] = super(
|
||||
Singleton, cls).__call__(
|
||||
@@ -19,11 +20,14 @@ class Config(metaclass=Singleton):
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
"""Initialize the configuration class."""
|
||||
self.continuous_mode = False
|
||||
self.speak_mode = False
|
||||
|
||||
def set_continuous_mode(self, value: bool):
|
||||
"""Set the continuous mode value."""
|
||||
self.continuous_mode = value
|
||||
|
||||
def set_speak_mode(self, value: bool):
|
||||
"""Set the speak mode value."""
|
||||
self.speak_mode = value
|
||||
|
||||
Reference in New Issue
Block a user