add graph base
This commit is contained in:
@@ -7,3 +7,16 @@ class LangToolBase(ABC):
|
||||
@abstractmethod
|
||||
def get_tool_fnc(self)->List[Callable]:
|
||||
pass
|
||||
|
||||
|
||||
class GraphBase(ABC):
|
||||
|
||||
@property
|
||||
@abstractmethod
|
||||
def agent(self):
|
||||
"""The agent object that must be provided by concrete implementations."""
|
||||
pass
|
||||
|
||||
def get_agent(self):
|
||||
"""Convenience method to access the agent."""
|
||||
return self.agent
|
||||
Reference in New Issue
Block a user