HEL-835: fix probe seed companion identity_json shape
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
co-authored by
multica-agent
parent
0b24fefc5d
commit
e27274448d
@@ -30,8 +30,10 @@ def seed(db_path: Path) -> dict:
|
||||
db_path.unlink()
|
||||
with Store(db_path) as store:
|
||||
with store.conn:
|
||||
store.execute("INSERT INTO companion(name,birth,hour,relation,nickname,boundary)"
|
||||
" VALUES('小满','2001-05-21','午时','朋友','','尊重彼此的节奏')")
|
||||
identity = {"name": "小满", "birth": "2001-05-21", "hour": "午时", "relation": "朋友",
|
||||
"nickname": "", "boundary": "尊重彼此的节奏", "color": {}}
|
||||
store.execute("INSERT INTO companion(id,identity_json) VALUES(1,?)",
|
||||
(json.dumps(identity, ensure_ascii=False),))
|
||||
rows = []
|
||||
# Target old turn (outside the 20-turn window).
|
||||
store.execute("INSERT INTO chat_message(ts,role,text,turn_id,status) VALUES(?,?,?,?,'sent')",
|
||||
|
||||
Reference in New Issue
Block a user