Skip to content

ClassifyTextData

The classification result data

Example Usage

typescript
import { ClassifyTextData } from "@meetkai/mka1/models/operations";

let value: ClassifyTextData = {
  label: "<value>",
};

Fields

FieldTypeRequiredDescription
labelstring✔️The label selected by the model from the provided options. This is the classification result.
confidencenumberOptional confidence score between 0 and 1 indicating how confident the model is in its classification decision. Higher values indicate higher confidence.
reasoningstringOptional brief explanation from the model explaining why it chose this particular label. Provides transparency into the classification decision.