Update CodeWriterCtrlFlow.yaml
Browse files- CodeWriterCtrlFlow.yaml +6 -3
CodeWriterCtrlFlow.yaml
CHANGED
@@ -11,6 +11,7 @@ input_interface_non_initialized: # initial input keys
|
|
11 |
- "goal"
|
12 |
|
13 |
input_interface_initialized:
|
|
|
14 |
- "code"
|
15 |
- "feedback"
|
16 |
|
@@ -52,6 +53,9 @@ system_message_prompt_template:
|
|
52 |
|
53 |
Your **ONLY** task is to take the user's goal for you, to decide whether to call the coder to write or re-write the code, to call the tester to test the code, or to finish the current task.
|
54 |
|
|
|
|
|
|
|
55 |
When you need to call the code writer, call the `write_code` command with the goal specified.
|
56 |
When you need to call the code tester, call the `test` command to test the code written.
|
57 |
When the code is written and the user is satisfied, call the `finish` command to terminate the current process with a summary of what functions are written, and what are their uses.
|
@@ -91,7 +95,7 @@ system_message_prompt_template:
|
|
91 |
|
92 |
Available Functions:
|
93 |
{{commands}}
|
94 |
-
input_variables: ["commands"]
|
95 |
template_format: jinja2
|
96 |
|
97 |
human_message_prompt_template:
|
@@ -116,5 +120,4 @@ init_human_message_prompt_template:
|
|
116 |
template_format: jinja2
|
117 |
|
118 |
previous_messages:
|
119 |
-
|
120 |
-
last_k: 1
|
|
|
11 |
- "goal"
|
12 |
|
13 |
input_interface_initialized:
|
14 |
+
- "goal"
|
15 |
- "code"
|
16 |
- "feedback"
|
17 |
|
|
|
53 |
|
54 |
Your **ONLY** task is to take the user's goal for you, to decide whether to call the coder to write or re-write the code, to call the tester to test the code, or to finish the current task.
|
55 |
|
56 |
+
Here is the goal you need to achieve:
|
57 |
+
{{goal}}
|
58 |
+
|
59 |
When you need to call the code writer, call the `write_code` command with the goal specified.
|
60 |
When you need to call the code tester, call the `test` command to test the code written.
|
61 |
When the code is written and the user is satisfied, call the `finish` command to terminate the current process with a summary of what functions are written, and what are their uses.
|
|
|
95 |
|
96 |
Available Functions:
|
97 |
{{commands}}
|
98 |
+
input_variables: ["commands", "goal"]
|
99 |
template_format: jinja2
|
100 |
|
101 |
human_message_prompt_template:
|
|
|
120 |
template_format: jinja2
|
121 |
|
122 |
previous_messages:
|
123 |
+
last_k: 3
|
|