Skip to content

ClassifyTextResponseBody

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

Example Usage

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

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

Fields

FieldTypeRequiredDescription
successboolean✔️Indicates whether the classification request was successful
dataoperations.ClassifyTextData✔️The classification result data
metadataoperations.ClassifyTextMetadata✔️Metadata about the classification request and execution