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

Method does_sample

src/prompt.py:71–76  ·  view source on GitHub ↗
(self, rd, name)

Source from the content-addressed store, hash-verified

69 return False
70
71 def does_sample(self, rd, name):
72 for t in self.templates[name]:
73 if t["rd"] == rd:
74 template = t
75 break
76 return template["samples"]
77
78
79 def apply_template(self, name, rd, kwargs, condition = None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected