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

Method print_templates

src/prompt.py:34–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

32 f.write(json.dumps(self.templates, sort_keys=True, indent=4, separators=(',', ': ')))
33
34 def print_templates(self):
35 for name in self.templates:
36 print(f"=============================Template Name: {name}============================")
37 for i, r in enumerate(self.templates[name]):
38 print(f"===========Round: {i}==========")
39 print("demo:")
40 print(r["demo"])
41 print("instruction:")
42 print(r["instruction"])
43
44 def round_exist(self, rd, name):
45 if name == "base":

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected