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

Function read_system_prompt

RealChart2Code_eval/evaluate_task1.py:45–54  ·  view source on GitHub ↗
(prompt_path: str)

Source from the content-addressed store, hash-verified

43
44
45def read_system_prompt(prompt_path: str) -> str:
46
47 if not os.path.exists(prompt_path):
48 if "generation" in prompt_path:
49 return get_default_generation_prompt()
50 else:
51 raise FileNotFoundError(f"System prompt file not found: {prompt_path}")
52
53 with open(prompt_path, 'r', encoding='utf-8') as f:
54 return f.read()
55
56
57def get_default_generation_prompt() -> str:

Callers 1

run_benchmarkFunction · 0.70

Calls 1

Tested by

no test coverage detected