Feature: Log user responses
- Track user responses
class ConversationTracker(models.Model):
student_id = models.CharField(
null=False,
max_length=100,
)
state_name = models.CharField(
max_length=100,
blank=True,
null=True,
)
context = models.JSONField(null=False) # NEW FIELD
updated_on = models.DateTimeField(auto_now=True)
- Grow writable context list
writable_context_keys = ["bot_text", "user_text", "lang"]
inhub/actions_system/thread_to_call.py
line 25 - Separate table
writable_context_keys
for writable context keys and ManyToMany field withContext
table (users/models.py)
Edited by Vlad Snisar