metric / instructions.py
Elron's picture
Upload instructions.py with huggingface_hub
9e91a9e verified
raw
history blame
399 Bytes
from .artifact import Artifact
class TextualInstruction(Artifact):
"""The role of TextualInstruction is to arrange potential instructions in the catalog, expressed as formatting strings.
The (formatted) instructions are added to the instances, in field named "instruction" via the Template Operator.
"""
text: str
def get_instruction(self) -> str:
return self.text