Class: Asimov::Utils::ClassificationsFileValidator

JsonlValidator show all
Defined in:


Validates that a file is in the “classifications” format used by OpenAI. The file is a JSONL file, with “text” and “label” keys for each line that have string values and an optional “metadata” key that can have any value. No other keys are permitted.

The only method that clients should call on instances of this class is ‘validate`

Method Summary

Methods inherited from JsonlValidator