MCPcopy Create free account
hub / github.com/Speakn0w/RealChart2Code / create_user_prompt

Function create_user_prompt

RealChart2Code_eval/evaluate_task3.py:232–244  ·  view source on GitHub ↗
(category: str, instruction: str, data_info: Dict[str, str])

Source from the content-addressed store, hash-verified

230
231
232def create_user_prompt(category: str, instruction: str, data_info: Dict[str, str]) -> str:
233
234 prompt = f"""# Task
235Category: {category}
236Instruction: {instruction}
237
238# Data
239"""
240
241 for filename, data_content in data_info.items():
242 prompt += f"## {filename}\n{data_content}\n\n"
243
244 return prompt
245
246
247def create_generation_request(category: str, data_info: Dict[str, str], refine_before_image_path: str, image_path: str, improvement_suggestion: str, refine_before_code: str,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected