MCPcopy Create free account
hub / github.com/SalesforceAIResearch/perfcodegen / load_templates

Method load_templates

src/prompt.py:18–21  ·  view source on GitHub ↗
(self, file_path = None)

Source from the content-addressed store, hash-verified

16 pass
17
18 def load_templates(self, file_path = None):
19 if file_path:
20 self.template_file_path = file_path
21 self.templates = json.load(open(self.template_file_path, "r"))
22
23 def load_examples(self, file_path = None):
24 if not file_path:

Callers 3

evaluate_pass_rateMethod · 0.95
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected