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.

added comments about tool fields

cpacker07f422da74ff
diff --git a/memgpt/connectors/db.py b/memgpt/connectors/db.py
index b49c6c747..e9fce7a18 100644
--- a/memgpt/connectors/db.py
+++ b/memgpt/connectors/db.py
@@ -156,10 +156,15 @@ def get_db_model(table_name: str, table_type: TableType, dialect="postgresql"):
user = Column(String) # optional: multi-agent only
# tool call request info
+ # if role == "assistant", this MAY be specified
+ # if role != "assistant", this must be null
+ # TODO align with OpenAI spec of multiple tool calls
tool_name = Column(String)
tool_args = Column(String)
# tool call response info
+ # if role == "tool", then this must be specified
+ # if role != "tool", this must be null
tool_call_id = Column(String)
# vector storage