in neuron-explainer/neuron_explainer/explanations/prompt_builder.py [0:0]
def from_string(cls, s: str) -> PromptFormat:
for prompt_format in cls:
if prompt_format.value == s:
return prompt_format
raise ValueError(f"{s} is not a valid PromptFormat")