MCPcopy Index your code
hub / github.com/going-doer/Paper2Code / get_write_msg

Function get_write_msg

codes/2_analyzing_llm.py:104–145  ·  view source on GitHub ↗
(todo_file_name, todo_file_desc)

Source from the content-addressed store, hash-verified

102"""}]
103
104def 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
137Conduct 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).
138You 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

Callers 1

2_analyzing_llm.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected