summaryrefslogtreecommitdiff
path: root/models/db.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2024-11-20 20:47:49 +0300
committerGrail Finder <wohilas@gmail.com>2024-11-20 20:47:49 +0300
commit5ccad20bd680dc443b30f0decc8fca13427dc70d (patch)
tree5ed20ce680c09609a29f880cf41c976301f3e031 /models/db.go
parentfc517c2c69d96501f1adc5a021b39b9eff22e4d7 (diff)
Feat: add memory [wip]
Diffstat (limited to 'models/db.go')
-rw-r--r--models/db.go13
1 files changed, 11 insertions, 2 deletions
diff --git a/models/db.go b/models/db.go
index e798cdc..5f49003 100644
--- a/models/db.go
+++ b/models/db.go
@@ -21,7 +21,16 @@ func (c Chat) ToHistory() ([]MessagesStory, error) {
return resp, nil
}
+/*
+memories should have two key system
+to be able to store different perspectives
+agent -> topic -> data
+agent is somewhat similar to a char
+*/
type Memory struct {
- Topic string `db:"topic" json:"topic"`
- Data string `db:"data" json:"data"`
+ Agent string `db:"agent" json:"agent"`
+ Topic string `db:"topic" json:"topic"`
+ Mind string `db:"mind" json:"mind"`
+ CreatedAt time.Time `db:"created_at" json:"created_at"`
+ UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}