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

Function read_system_prompt

RealChart2Code_eval/evaluate_task2.py:42–51  ·  view source on GitHub ↗
(prompt_path: str)

Source from the content-addressed store, hash-verified

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

Callers 1

run_benchmarkFunction · 0.70

Calls 1

Tested by

no test coverage detected