Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: Require `tool_calls` or `content` to be set for assistant role (#976)
Sarah Wooderse246ea6aaed0
diff --git a/memgpt/data_types.py b/memgpt/data_types.pyindex aeaf159a3..dfa48ddae 100644--- a/memgpt/data_types.py+++ b/memgpt/data_types.py@@ -246,7 +246,7 @@ class Message(Record):openai_message["name"] = self.nameelif self.role == "assistant":- assert all([v is not None for v in [self.text, self.role]]), vars(self)+ assert self.tool_calls is not None or self.text is not Noneopenai_message = {"content": self.text,"role": self.role,