File size: 363 Bytes
5f83674
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
# !/usr/bin/env python3
import json, datetime

def reflect(prompt, response):
    entry = {
        "timestamp": datetime.datetime.utcnow().isoformat(),
        "prompt": prompt,
        "response": response,
        "intent": "reflection"
    }
    with open("~/.config/blux-lite-gold/logs/reflections.jsonl", "a") as f:
        f.write(json.dumps(entry) + "\n")