Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

Remove sqlalchemy constraint for Message object text to be non-null

Sarah Woodersad3822b8c48c
diff --git a/memgpt/connectors/db.py b/memgpt/connectors/db.py
index 45338c5ca..3e5dba73d 100644
--- a/memgpt/connectors/db.py
+++ b/memgpt/connectors/db.py
@@ -116,7 +116,7 @@ def get_db_model(table_name: str, table_type: TableType):
# openai info
role = Column(String, nullable=False)
- text = Column(String, nullable=False)
+ text = Column(String) # optional: can be null if function call
model = Column(String, nullable=False)
user = Column(String) # optional: multi-agent only