Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
patch getargspec error (#440)
Charles Packerb86d3e8f968c
diff --git a/memgpt/config.py b/memgpt/config.pyindex 4ca22a746..feb4bbeab 100644--- a/memgpt/config.py+++ b/memgpt/config.py@@ -344,7 +344,11 @@ class AgentConfig:agent_config = json.load(f)# allow compatibility accross versions- class_args = inspect.getargspec(cls.__init__).args+ try:+ class_args = inspect.getargspec(cls.__init__).args+ except AttributeError:+ # https://github.com/pytorch/pytorch/issues/15344+ class_args = inspect.getfullargspec(cls.__init__).argsagent_fields = list(agent_config.keys())for key in agent_fields:if key not in class_args: