.SubCats¶
gd.validators.SubCats
- class glyphdeck.validators.SubCats(
- *,
- sub_categories: list,
Bases:
BaseValidatorModelValidation model for representing sub-categories.
- _field_count
The number of fields in the model.
- Type:
int
- sub_categories
All sub-categories identified inside the input in order of relevance.
- Type:
list
- model_fields: ClassVar[Dict[str, FieldInfo]] = {'sub_categories': FieldInfo(annotation=list, required=True, description='All sub-categories identified inside the input in order of relevance, making sure to capture all the topics, with least 1 and no more than 30 categories. Each category name should be concise.')}
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
This replaces Model.__fields__ from Pydantic V1.
- sub_categories: list