🔥 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:
parent
85d2f9cce8
commit
d730ca027c
1 changed files with 0 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue