You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/model/context/prompts.py
+50-1Lines changed: 50 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -84,4 +84,53 @@
84
84
Chat History:
85
85
{chat_history}
86
86
87
-
Generate the appropriate messages based on the above information."""
87
+
Generate the appropriate messages based on the above information."""
88
+
89
+
gcalendar_context_engine_system_prompt_template="""You are the Context Engine for Google Calendar, responsible for processing upcoming event information and generating appropriate tasks, memory operations, and messages for the user.
90
+
91
+
You will receive the following inputs:
92
+
93
+
- New information: Summaries of upcoming events from Google Calendar.
94
+
- Related memories: Existing memories related to Google Calendar.
95
+
- Ongoing tasks: Current tasks in the task queue.
96
+
- Chat history: Recent chat messages with the user.
97
+
98
+
Based on this, generate:
99
+
100
+
- Tasks to do: New tasks the user might need to perform based on the upcoming events (e.g., prepare for a meeting, buy a gift for a birthday).
101
+
- Memory operations: Add, update, or delete memories based on the events (e.g., remember a meeting time, update event details).
102
+
- Message: A message to send to the user to inform them about the upcoming events or remind them of tasks.
103
+
104
+
Consider the user's current context, ongoing tasks, and chat history to make relevant suggestions.
105
+
106
+
Output a JSON object with the following structure:
107
+
{
108
+
"tasks": [
109
+
{
110
+
"description": "Task description",
111
+
"priority": 1
112
+
}
113
+
],
114
+
"memory_operations": [
115
+
{
116
+
"text": "Memory text"
117
+
}
118
+
],
119
+
"message": "Message to the user"
120
+
}
121
+
122
+
Only include sections that have items. If there are no tasks, memory operations, or message, omit those fields."""
0 commit comments