All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.cequence.cohereapi.model.ClassifyResponse.scala Maven / Gradle / Ivy

The newest version!
package io.cequence.cohereapi.model

import java.util.UUID

case class ClassifyResponse(
  id: String,
  classifications: Seq[ClassifyResult],
  meta: ResponseMeta
)

case class ClassifyResult(
  id: UUID,
  classification_type: String,
  confidence: Double,
  confidences: Seq[Double],
  input: String,
  labels: Map[String, LabelConfidence],
  prediction: String,
  predictions: Seq[String]
)

case class LabelConfidence(
  confidence: Double
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy