add graph base

This commit is contained in:
2025-10-22 12:29:54 +08:00
parent ba7577f4a6
commit 3a150d6b8d

View File

@@ -6,4 +6,17 @@ class LangToolBase(ABC):
@abstractmethod
def get_tool_fnc(self)->List[Callable]:
pass
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