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

Function get_write_msg

codes/2_analyzing.py:94–135  ·  view source on GitHub ↗
(todo_file_name, todo_file_desc)

Source from the content-addressed store, hash-verified

92"""}]
93
94def 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
127Conduct 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).
128You 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
138def api_call(msg):

Callers 1

2_analyzing.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected