Arize Phoenix TS
    Preparing search index...
    • Build the schema that constrains a classification label to the given labels, so providers with strict structured outputs can only return one of them. Labels without descriptions become a plain enum. When any label has a description, each label becomes a described const in an anyOf, so the model sees what every label means.

      Parameters

      • labels: Readonly<Record<string, string | null>>

        each label mapped to its description, or null for none; must contain at least one label

      Returns ZodType<string>