| 92 | """}] |
| 93 | |
| 94 | def get_write_msg(todo_file_name, todo_file_desc): |
| 95 | |
| 96 | draft_desc = f"Write the logic analysis in '{todo_file_name}', which is intended for '{todo_file_desc}'." |
| 97 | if len(todo_file_desc.strip()) == 0: |
| 98 | draft_desc = f"Write the logic analysis in '{todo_file_name}'." |
| 99 | |
| 100 | write_msg=[{'role': 'user', "content": f"""## Paper |
| 101 | {paper_content} |
| 102 | |
| 103 | ----- |
| 104 | |
| 105 | ## Overview of the plan |
| 106 | {context_lst[0]} |
| 107 | |
| 108 | ----- |
| 109 | |
| 110 | ## Design |
| 111 | {context_lst[1]} |
| 112 | |
| 113 | ----- |
| 114 | |
| 115 | ## Task |
| 116 | {context_lst[2]} |
| 117 | |
| 118 | ----- |
| 119 | |
| 120 | ## Configuration file |
| 121 | ```yaml |
| 122 | {config_yaml} |
| 123 | ``` |
| 124 | ----- |
| 125 | |
| 126 | ## Instruction |
| 127 | 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). |
| 128 | You DON'T need to provide the actual code yet; focus on a thorough, clear analysis. |
| 129 | |
| 130 | {draft_desc} |
| 131 | |
| 132 | ----- |
| 133 | |
| 134 | ## Logic Analysis: {todo_file_name}"""}] |
| 135 | return write_msg |
| 136 | |
| 137 | |
| 138 | def api_call(msg): |