unitxt.instructions module

class unitxt.instructions.TextualInstruction(data_classification_policy: List[str] = None, text: str = __required__)[source]

Bases: 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.