.Top5Cats

gd.validators.Top5Cats

class glyphdeck.validators.Top5Cats(
*,
top_categories: list,
)

Bases: BaseValidatorModel

Validation model for representing the top 1 to 5 categories identified.

_field_count

The number of fields in the model.

Type:

int

top_categories

The top 1 to 5 sub-categories identified inside the input in order of relevance.

Type:

list

model_fields: ClassVar[Dict[str, FieldInfo]] = {'top_categories': FieldInfo(annotation=list, required=True, description='The top 1 to 5 sub-categories identified inside the input in order of relevance. 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.

top_categories: list