forked from i-am-alice/2nd-devs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.ts
executable file
·81 lines (78 loc) · 2.4 KB
/
schema.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
export const getTasksSchema = {
"name": "getTasks",
"description": "Get (unfinished) tasks from Todoist",
"parameters": {
"type": "object",
"properties": {}
}
}
export const addTasksSchema = {
"name": "addTasks",
"description": "Add multiple tasks to Todoist",
"parameters": {
"type": "object",
"properties": {
"tasks": {
"type": "array",
"description": "List of tasks that needs to be added to the Todoist",
"items": {
"type": "object",
"properties": {
"content": {
"type": "string",
"description": "Format: task description"
},
"due_string": {
"type": "string",
}
}
}
}
}
}
}
export const finishTasksSchema = {
"name": "closeTasks",
"description": "Finish/Complete tasks in Todoist",
"parameters": {
"type": "object",
"properties": {
"tasks": {
"type": "array",
"description": "List of IDs of tasks that needs to be finished/completed",
"items": {
"type": "number",
}
}
}
}
}
export const updateTasksSchema = {
"name": "updateTasks",
"description": "Update multiple tasks in Todoist based on the current tasks mentioned in the conversation",
"parameters": {
"type": "object",
"properties": {
"tasks": {
"type": "array",
"description": "List of tasks that needs to be updated in the Todoist",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "ID of the task to update"
},
"content": {
"type": "string",
"description": "Format: task description"
},
"due_string": {
"type": "string",
}
}
}
}
}
}
}