| 102 | """}] |
| 103 | |
| 104 | def get_write_msg(todo_file_name, todo_file_desc): |
| 105 | |
| 106 | draft_desc = f"Write the logic analysis in '{todo_file_name}', which is intended for '{todo_file_desc}'." |
| 107 | if len(todo_file_desc.strip()) == 0: |
| 108 | draft_desc = f"Write the logic analysis in '{todo_file_name}'." |
| 109 | |
| 110 | write_msg=[{'role': 'user', "content": f"""## Paper |
| 111 | {paper_content} |
| 112 | |
| 113 | ----- |
| 114 | |
| 115 | ## Overview of the plan |
| 116 | {context_lst[0]} |
| 117 | |
| 118 | ----- |
| 119 | |
| 120 | ## Design |
| 121 | {context_lst[1]} |
| 122 | |
| 123 | ----- |
| 124 | |
| 125 | ## Task |
| 126 | {context_lst[2]} |
| 127 | |
| 128 | ----- |
| 129 | |
| 130 | ## Configuration file |
| 131 | ```yaml |
| 132 | {config_yaml} |
| 133 | ``` |
| 134 | ----- |
| 135 | |
| 136 | ## Instruction |
| 137 | Conduct a Logic Analysis to assist in writing the code, based on the paper, the plan, the design, the task and the previously specified configuration file (config.yaml). |
| 138 | You DON'T need to provide the actual code yet; focus on a thorough, clear analysis. |
| 139 | |
| 140 | {draft_desc} |
| 141 | |
| 142 | ----- |
| 143 | |
| 144 | ## Logic Analysis: {todo_file_name}"""}] |
| 145 | return write_msg |
| 146 | |
| 147 | |
| 148 | |