Build reusable bot framework
This commit is contained in:
18
modules/reminders/prompts.py
Normal file
18
modules/reminders/prompts.py
Normal file
@@ -0,0 +1,18 @@
|
||||
REMINDER_PROMPT = {
|
||||
"system": (
|
||||
"You parse reminder commands. Return only a JSON object and do not "
|
||||
"invent missing dates, messages, timezones, or reminder IDs."
|
||||
),
|
||||
"user_template": (
|
||||
"User timezone: {timezone}\n"
|
||||
"Current UTC time: {current_time}\n"
|
||||
"Conversation context:\n{history_context}\n\n"
|
||||
"User message: \"{user_input}\"\n\n"
|
||||
"Return an action: create, list, cancel, or set_timezone. "
|
||||
"For create include message, an ISO-8601 run_at with UTC offset, and "
|
||||
"recurrence as null or an object with frequency daily/weekly and "
|
||||
"optional interval. For cancel include reminder_id. For set_timezone "
|
||||
"include an IANA timezone. If required information is missing, include "
|
||||
"needs_clarification instead."
|
||||
),
|
||||
}
|
||||
Reference in New Issue
Block a user