Skip to content

ClassificationResponse

Response from the text classification endpoint containing the classification result, confidence, and metadata.

Example Usage

typescript
import { ClassificationResponse } from "@meetkai/mka1/models/components";

let value: ClassificationResponse = {
  success: true,
  data: {
    label: "<value>",
  },
  metadata: {
    model: "Impala",
    labels: [],
    classifiedAt: "<value>",
  },
};

Fields

FieldTypeRequiredDescription
successboolean✔️Indicates whether the classification request was successful
datacomponents.ClassificationResponseData✔️The classification result data
metadatacomponents.Metadata✔️Metadata about the classification request and execution