From 07f422da74ffd13747264a2791edaea4c8a86308 Mon Sep 17 00:00:00 2001 From: cpacker Date: Thu, 4 Jan 2024 11:53:06 -0800 Subject: [PATCH] added comments about tool fields --- memgpt/connectors/db.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/memgpt/connectors/db.py b/memgpt/connectors/db.py index b49c6c74..e9fce7a1 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