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
model: 'gpt-3.5-turbo',// you can use any model here, e.g. 'gpt-3.5-turbo', 'gpt-4', etc.
85
-
messages: [
86
-
{
87
-
role: 'system',
88
-
content:
89
-
'you are an expert daily planner. you will be given a list of main tasks and an estimated time to complete each task. You will also receive the total amount of hours to be worked that day. Your job is to return a detailed plan of how to achieve those tasks by breaking each task down into at least 3 subtasks each. MAKE SURE TO ALWAYS CREATE AT LEAST 3 SUBTASKS FOR EACH MAIN TASK PROVIDED BY THE USER! YOU WILL BE REWARDED IF YOU DO.',
90
-
},
91
-
{
92
-
role: 'user',
93
-
content: `I will work ${hours} hours today. Here are the tasks I have to complete: ${JSON.stringify(
94
-
parsedTasks
95
-
)}. Please help me plan my day by breaking the tasks down into actionable subtasks with time and priority status.`,
96
-
},
97
-
],
98
-
tools: [
99
-
{
100
-
type: 'function',
101
-
function: {
102
-
name: 'parseTodaysSchedule',
103
-
description: 'parses the days tasks and returns a schedule',
104
-
parameters: {
105
-
type: 'object',
106
-
properties: {
107
-
mainTasks: {
108
-
type: 'array',
109
-
description: 'Name of main tasks provided by user, ordered by priority',
110
-
items: {
111
-
type: 'object',
112
-
properties: {
113
-
name: {
114
-
type: 'string',
115
-
description: 'Name of main task provided by user',
116
-
},
117
-
priority: {
118
-
type: 'string',
119
-
enum: ['low','medium','high'],
120
-
description: 'task priority',
121
-
},
122
-
},
123
-
},
124
-
},
125
-
subtasks: {
126
-
type: 'array',
127
-
items: {
128
-
type: 'object',
129
-
properties: {
130
-
description: {
131
-
type: 'string',
132
-
description:
133
-
'detailed breakdown and description of sub-task related to main task. e.g., "Prepare your learning session by first reading through the documentation"',
134
-
},
135
-
time: {
136
-
type: 'number',
137
-
description: 'time allocated for a given subtask in hours, e.g. 0.5',
138
-
},
139
-
mainTaskName: {
140
-
type: 'string',
141
-
description: 'name of main task related to subtask',
model: 'gpt-3.5-turbo',// you can use any model here, e.g. 'gpt-3.5-turbo', 'gpt-4', etc.
230
+
messages: [
231
+
{
232
+
role: 'system',
233
+
content:
234
+
'you are an expert daily planner. you will be given a list of main tasks and an estimated time to complete each task. You will also receive the total amount of hours to be worked that day. Your job is to return a detailed plan of how to achieve those tasks by breaking each task down into at least 3 subtasks each. MAKE SURE TO ALWAYS CREATE AT LEAST 3 SUBTASKS FOR EACH MAIN TASK PROVIDED BY THE USER! YOU WILL BE REWARDED IF YOU DO.',
235
+
},
236
+
{
237
+
role: 'user',
238
+
content: `I will work ${hours} hours today. Here are the tasks I have to complete: ${JSON.stringify(
239
+
parsedTasks
240
+
)}. Please help me plan my day by breaking the tasks down into actionable subtasks with time and priority status.`,
241
+
},
242
+
],
243
+
tools: [
244
+
{
245
+
type: 'function',
246
+
function: {
247
+
name: 'parseTodaysSchedule',
248
+
description: 'parses the days tasks and returns a schedule',
249
+
parameters: {
250
+
type: 'object',
251
+
properties: {
252
+
mainTasks: {
253
+
type: 'array',
254
+
description: 'Name of main tasks provided by user, ordered by priority',
255
+
items: {
256
+
type: 'object',
257
+
properties: {
258
+
name: {
259
+
type: 'string',
260
+
description: 'Name of main task provided by user',
261
+
},
262
+
priority: {
263
+
type: 'string',
264
+
enum: ['low','medium','high'],
265
+
description: 'task priority',
266
+
},
267
+
},
268
+
},
269
+
},
270
+
subtasks: {
271
+
type: 'array',
272
+
items: {
273
+
type: 'object',
274
+
properties: {
275
+
description: {
276
+
type: 'string',
277
+
description:
278
+
'detailed breakdown and description of sub-task related to main task. e.g., "Prepare your learning session by first reading through the documentation"',
279
+
},
280
+
time: {
281
+
type: 'number',
282
+
description: 'time allocated for a given subtask in hours, e.g. 0.5',
283
+
},
284
+
mainTaskName: {
285
+
type: 'string',
286
+
description: 'name of main task related to subtask',
0 commit comments