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: crates/chat-cli/src/cli/chat/tools/todo.rs
+36-28Lines changed: 36 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,4 @@
1
-
#![allow(warnings)]
2
-
3
-
use core::task;
4
-
use std::path::{Path,PathBuf};
1
+
use std::path::PathBuf;
5
2
use std::time::{SystemTime,UNIX_EPOCH};
6
3
7
4
use std::io::Write;
@@ -11,7 +8,6 @@ use serde::{
11
8
};
12
9
13
10
use crossterm::{
14
-
execute,
15
11
queue,
16
12
style,
17
13
};
@@ -20,26 +16,22 @@ use eyre::{
20
16
Result,
21
17
bail,
22
18
};
23
-
use uuid::timestamp::context;
24
19
25
-
usesuper::{
26
-
InvokeOutput,
27
-
MAX_TOOL_RESPONSE_SIZE,
28
-
OutputKind,
29
-
};
20
+
usesuper::InvokeOutput;
30
21
31
22
usecrate::os::Os;
32
23
33
24
/*
34
25
Demo prompts:
35
26
Create a Python package layout with a blank main file and a blank utilities file. Start by making a todo list.
36
27
Design your own super simple programming task with 4 steps. Make a todo list for the task, and begin executing those steps.
28
+
Implement a basic input to Python type converter where the user can input either a string or integer and it gets converted to the corresponding Python object.
Copy file name to clipboardExpand all lines: crates/chat-cli/src/cli/chat/tools/tool_index.json
+15-8Lines changed: 15 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -233,9 +233,9 @@
233
233
"required": ["command"]
234
234
}
235
235
},
236
-
"todo": {
236
+
"todo_list": {
237
237
"name": "todo_list",
238
-
"description": "A tool for creating a TODO list and keeping track of tasks. This tool should be requested EVERY time the user gives you a task that will take multiple steps. A TODO list should be made BEFORE executing any steps. Steps should be marked off AS YOU COMPLETE THEM. DO NOT display your own todo list AT ANY POINT; this is done for you.",
238
+
"description": "A tool for creating a TODO list and keeping track of tasks. This tool should be requested EVERY time the user gives you a task that will take multiple steps. A TODO list should be made BEFORE executing any steps. Steps should be marked off AS YOU COMPLETE THEM. DO NOT display your own tasks or todo list AT ANY POINT; this is done for you. Complete the tasks in the same order that you provide them.",
239
239
"input_schema": {
240
240
"type": "object",
241
241
"properties": {
@@ -251,21 +251,28 @@
251
251
"type": "string"
252
252
}
253
253
},
254
+
"task_description": {
255
+
"description": "Required paramter of `create` command containing a BRIEF summary of the given task. The summary should be detailed enough to refer to without knowing the problem context beforehand.",
256
+
"type": "string"
257
+
},
254
258
"completed_indices": {
255
-
"description": "Required parameter of `complete` command containing the 0-INDEXED numbers of EVERY completed task. Each task should be marked as completed IMMEDIATELY after it is finished. DO NOT display your own version of a TODO list.",
259
+
"description": "Required parameter of `complete` command containing the 0-INDEXED numbers of EVERY completed task. Each task should be marked as completed IMMEDIATELY after it is finished. DO NOT mark tasks as completed if you skip them.",
256
260
"type": "array",
257
261
"items": {
258
262
"type": "integer"
259
263
}
260
264
},
261
-
"task_description": {
262
-
"description": "Required paramter of `create` command containing a BRIEF summary of the given task. The summary should be detailed enough to refer to without knowing the problem context beforehand.",
263
-
"type": "string"
264
-
},
265
265
"context_update": {
266
-
"description": "Required parameter of `complete` command containing important task context. Use this command to track important information about the task and its current status.",
266
+
"description": "Required parameter of `complete` command containing important task context. Use this command to track important information about the task AND information about files you have read.",
267
267
"type": "string"
268
268
},
269
+
"modified_files": {
270
+
"description": "Optional parameter of `complete` command containing a list of paths of files that were modified during the task. This is useful for tracking file changes that are important to the task.",
271
+
"type": "array",
272
+
"items": {
273
+
"type": "string"
274
+
}
275
+
},
269
276
"path": {
270
277
"description": "Required parameter of `load` command containing path of todo list to load"
0 commit comments