🔥 refactor(base.py): remove redundant abstractmethod decorators

The abstractmethod decorator is redundant in the CustomChain and CustomAgentExecutor classes as the methods they decorate are already defined as abstract in the parent classes. Removing these decorators improves code readability and reduces clutter.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-08 00:20:16 -03:00
commit d730ca027c

View file

@ -91,12 +91,10 @@ class CustomChain(Chain, ABC):
"""Custom chain"""
@staticmethod
@abstractmethod
def function_name():
return "CustomChain"
@classmethod
@abstractmethod
def initialize(cls, *args, **kwargs):
pass
@ -111,12 +109,10 @@ class CustomAgentExecutor(AgentExecutor, ABC):
"""Custom chain"""
@staticmethod
@abstractmethod
def function_name():
return "CustomChain"
@classmethod
@abstractmethod
def initialize(cls, *args, **kwargs):
pass