Skip to content

Commit 2f2028e

Browse files
committed
op_init: add extra files prompts for implement operation
1 parent 69148e2 commit 2f2028e

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

config/config_keys.go

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ const K_ImplementTaskStage3PlanningJsonModePrompt = "stage3_task_planning_json_m
5858
const K_ImplementStage3PlanningLitePrompt = "stage3_planning_lite_prompt"
5959
const K_ImplementStage3PlanningLiteJsonModePrompt = "stage3_planning_lite_json_mode_prompt"
6060

61+
// Extra prompt when adding unexpected source file to the prompts on late stage 3
62+
const K_ImplementTaskStage3ExtraFilesPrompt = "stage3_task_extra_files_prompt"
63+
6164
const K_ImplementStage4ChangesDonePrompt = "stage4_changes_done_prompt"
6265
const K_ImplementStage4ChangesDoneResponse = "stage4_changes_done_response"
6366
const K_ImplementStage4ProcessPrompt = "stage4_process_prompt"

config/config_templates.go

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ func GetImplementConfigTemplate() map[string]interface{} {
6060
result[K_ImplementStage3PlanningJsonModePrompt] = templateString
6161
result[K_ImplementTaskStage3PlanningPrompt] = templateString
6262
result[K_ImplementTaskStage3PlanningJsonModePrompt] = templateString
63+
result[K_ImplementTaskStage3ExtraFilesPrompt] = templateString
6364
result[K_ImplementStage3PlanningLitePrompt] = templateString
6465
result[K_ImplementStage3PlanningLiteJsonModePrompt] = templateString
6566
result[K_Stage3OutputSchema] = templateObject

op_init/prompt_templates.go

+1
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ func getDefaultImplementConfigTemplate() map[string]interface{} {
202202
result[config.K_ImplementTaskStage3PlanningJsonModePrompt] = "Below are the tasks that need to be implemented. Study all the source code provided to you and create a list of files that will be changed or created by you as a result of implementing the tasks. The tasks are:"
203203
result[config.K_ImplementStage3PlanningLitePrompt] = "Now create a list of file names that will be changed or created by you as a result of implementing the tasks according to your work plan. Place each filename in <filename></filename> tags."
204204
result[config.K_ImplementStage3PlanningLiteJsonModePrompt] = "Now create a list of files that will be changed or created by you as a result of implementing the tasks according to your work plan."
205+
result[config.K_ImplementTaskStage3ExtraFilesPrompt] = "Below are the contents of additional source code files that may be relevant to the tasks."
205206

206207
result[config.K_Stage3OutputSchema] = getDefaultListOfFilesOutputSchema()
207208
result[config.K_Stage3OutputKey] = defaultListOfFilesOutputKey

0 commit comments

Comments
 (0)