Upload 9 files
Browse filesFiles changed (3)
32 unmodified lines3334353637383914 unmodified lines545556575859609 unmodified lines7071727374757677787932 unmodified linesdescription: "Write code to finish the goal with user interaction"input_args: ["goal"]finish:description: "Signal that the objective has been satisfied, return the summary of what was done"input_args: ["summary"]manual_finish:description: "The user demands to quit and terminate the current process"14 unmodified linesWhen you need to call the code writer, call the `write_code` command with the goal specified.When you need to call the code tester, call the `test` command to test the code written.When the code is written and the user is satisfied, call the `finish` command to terminate the current process with a summary of what was done in one sentence.Whenever you are in doubt, or need to confirm something to the user, call `ask_user` with the question.The coder will only write one function per goal, make sure you are not asking the coder to write more than one function.9 unmodified lines3.2. The user does not provide details about refining the code, for example, just stating the fact that the user has updated the code, **this means the user is satisfied with the code written, call the `finish` command.**4. If the user is satisfied with the code, call `test` to test the code5. Depending on the result of the test:5.1 Test passes, terminate the current process with the `finish` command, with a summary of what was done in a sentence.5.2 Test fails, **call the coder with details of the test results to instruct the coder to refine the code**, go back to step 2.If you have completed all your tasks, make sure to use the "finish" command, with a summary of what was done.Constraints:1. Exclusively use the commands listed in double quotes e.g. "command name"32 unmodified lines3334353637383914 unmodified lines545556575859609 unmodified lines7071727374757677787932 unmodified linesdescription: "Write code to finish the goal with user interaction"input_args: ["goal"]finish:description: "Signal that the objective has been satisfied, return the summary of what functions are written, and what are their uses"input_args: ["summary"]manual_finish:description: "The user demands to quit and terminate the current process"14 unmodified linesWhen you need to call the code writer, call the `write_code` command with the goal specified.When you need to call the code tester, call the `test` command to test the code written.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.Whenever you are in doubt, or need to confirm something to the user, call `ask_user` with the question.The coder will only write one function per goal, make sure you are not asking the coder to write more than one function.9 unmodified lines3.2. The user does not provide details about refining the code, for example, just stating the fact that the user has updated the code, **this means the user is satisfied with the code written, call the `finish` command.**4. If the user is satisfied with the code, call `test` to test the code5. Depending on the result of the test:5.1 Test passes, terminate the current process with the `finish` command, with a summary of what functions are written, and what are their uses.5.2 Test fails, **call the coder with details of the test results to instruct the coder to refine the code**, go back to step 2.If you have completed all your tasks, make sure to use the "finish" command, with a summary of what functions are written, and what are their uses.Constraints:1. Exclusively use the commands listed in double quotes e.g. "command name"
26 unmodified lines272829303132337 unmodified lines4142434445464726 unmodified linesreturn {"EARLY_EXIT": True,"code": code_content,"summary": "CodeWriter: " + output_payload["command_args"]["summary"],"status": "finished"}elif command == "manual_finish":7 unmodified linesreturn {"EARLY_EXIT": True,"code": "no code was generated","summary": "CodeWriter: CodeWriter was terminated explicitly by the user, process is unfinished","status": "unfinished"}elif command == "test":26 unmodified lines27282930313233347 unmodified lines424344454647484926 unmodified linesreturn {"EARLY_EXIT": True,"code": code_content,"result": output_payload["command_args"]["summary"],"summary": "ExtendLibrary/CodeWriter: " + output_payload["command_args"]["summary"],"status": "finished"}elif command == "manual_finish":7 unmodified linesreturn {"EARLY_EXIT": True,"code": "no code was generated","result": "CodeWriter was terminated explicitly by the user, process is unfinished","summary": "ExtendLibrary/CodeWriter: CodeWriter was terminated explicitly by the user, process is unfinished","status": "unfinished"}elif command == "test":
6 unmodified lines7891011126 unmodified lines- "code"- "status"- "summary"### Subflows specificationsubflows_config:6 unmodified lines789101112136 unmodified lines- "code"- "status"- "summary"- "result"### Subflows specificationsubflows_config:
CodeWriterCtrlFlow.yaml+4-4
CodeWriterFlow.py+4-2
CodeWriterFlow.yaml+1