added comments about tool fields

This commit is contained in:
cpacker
2024-01-04 11:53:06 -08:00
parent ee5ece6866
commit 07f422da74

View File

@@ -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