Tribunal.RedTeam.YamlEmit (Tribunal v3.0.0)

Copy Markdown View Source

Emits a list of red-team cases as a tribunal-shaped dataset YAML.

Strings are quoted before passing the dataset to Ymlr. This keeps model-provided values from being interpreted as YAML syntax or scalar types when the dataset is loaded again through Tribunal.Dataset.

Summary

Functions

Encodes a list of red-team cases to a YAML string.

Functions

encode(cases)

Encodes a list of red-team cases to a YAML string.