better abc
This commit is contained in:
@@ -11,12 +11,6 @@ class LangToolBase(ABC):
|
|||||||
|
|
||||||
class GraphBase(ABC):
|
class GraphBase(ABC):
|
||||||
|
|
||||||
@property
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def agent(self):
|
def invoke(self, *nargs, **kwargs):
|
||||||
"""The agent object that must be provided by concrete implementations."""
|
pass
|
||||||
pass
|
|
||||||
|
|
||||||
def get_agent(self):
|
|
||||||
"""Convenience method to access the agent."""
|
|
||||||
return self.agent
|
|
||||||
Reference in New Issue
Block a user