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
tasks?: TaskInfo[];// For ADD_TASK, now an array of objects
26
26
filter?: {// For targeting tasks in DELETE, UPDATE, MARK_COMPLETED
27
27
positions?: (number|'last')[];
@@ -35,13 +35,14 @@ export type AnalyzeTaskDetailsOutput = {
35
35
location?: string;
36
36
};
37
37
sortOption?: 'creationDate'|'dueDate'|'lastUpdated'|'priorityHighToLow'|'priorityLowToHigh';// For SORT_BY
38
+
searchQuery?: string;// For SHOW_TASKS
38
39
};
39
40
40
41
constsystemPrompt=`You are a sophisticated personal task assistant command parser. Your job is to analyze a transcribed voice command and determine the user's intent and the entities associated with that intent.
41
42
42
43
Your output MUST be a JSON object with the following structure:
@@ -65,6 +67,7 @@ Your output MUST be a JSON object with the following structure:
65
67
- "status": Filter by whether tasks are done or not.
66
68
- "updates": For UPDATE_TASK, specifies what to change. The AI should extract what the new value should be.
67
69
- "sortOption": For SORT_BY, extract the sorting criteria. Map user phrases to the allowed values. e.g., "due date" -> "dueDate", "priority" -> "priorityHighToLow".
70
+
- "searchQuery": For SHOW_TASKS, this should be the keyword or phrase the user wants to filter by (e.g., "administrative", "grocery", "this week").
68
71
69
72
Examples:
70
73
- Input: "Remind me to buy milk by this Friday and it's super important"
0 commit comments