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: CONTRIBUTING.md
+13-7Lines changed: 13 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -30,20 +30,26 @@ DemoGPT works through the following steps:
30
30
-`task_definitions.py`: Definitions of all available tasks.
31
31
-`prompts`: Folder containing task files.
32
32
33
-
### Task List Folder (`src/plan/chains/prompts`)
33
+
### Task List Folder (`demogpt/plan/chains/prompts`)
34
34
35
35
Contains task files. Only `prompt_chat_template.py`, `ui_input_file.py`, `ui_input_text.py`, `ui_output_text.py` are filled. Others need to be filled according to their needs.
36
36
37
37
## Adding a New Task
38
38
39
39
To add a new task, follow these steps:
40
40
41
-
1.**Fill the Corresponding File:** Fill the corresponding file in `src/plan/chains/prompts` with the implementation of the new task.
42
-
2.**Update Task Definitions:** Change the "TASKS" variable in `src/plan/chains/task_definitions.py` to include the new task.
43
-
3.**Add the New Task to Task Chains:** Add the new task in `src/plan/chains/task_chains.py`.
44
-
4.**Modify `__init__.py`:** Modify `src/plan/chains/prompts/__init__.py` in a way that the new task becomes available.
45
-
5.**Update Test Cases:** Update the `TOOL_EXAMPLES` variable in `src/plan/test_cases.py` and add at least one test case to test the new tool.
46
-
6.**Add Test Script:** Add the corresponding test script in `src/plan/test.py` like the following:
41
+
1.**Fill the Corresponding File:** Fill the corresponding file in `demogpt/plan/chains/prompts` with the implementation of the new task.
42
+
2.**Update Task Definitions:** Change the "TASKS" variable in `demogpt/plan/chains/task_definitions.py` to include the new task.
43
+
3.**Add the New Task to Task Chains:** Add the new task in `demogpt/plan/chains/task_chains.py`.
44
+
4.**Modify `__init__.py`:** Modify `demogpt/plan/chains/prompts/__init__.py` in a way that the new task becomes available.
45
+
5.**Add the New Task Call to `demogpt/plan`:** Add new task to getCodeSnippet function like in the following:
0 commit comments