You ask the bot: Remind me to put my pj on at 23:00
The bot's response consists of two parts: the human-readable part like "sure" and the machine-readable part like {"action": "reminder", "time": 123456789}. Two approaches: use the system prompt to explain the format, or investigate how to use the additional roles like "function".
The script adds the reminder to a database table; the table has rows: id, description, deadline, is_notified. The script checks the table periodically (add a timer) and notifies the user (no need to ask the LLM) when the time has come.
You ask the bot: Remind me to put my pj on at 23:00
The bot's response consists of two parts: the human-readable part like "sure" and the machine-readable part like {"action": "reminder", "time": 123456789}. Two approaches: use the system prompt to explain the format, or investigate how to use the additional roles like "function".
The script adds the reminder to a database table; the table has rows: id, description, deadline, is_notified. The script checks the table periodically (add a timer) and notifies the user (no need to ask the LLM) when the time has come.