ClassifierResponse

data class ClassifierResponse @JvmOverloads constructor(val answers: Map<String, Answer>, val modelVersion: String? = null)

The answers produced by a single Classifier.classify call.

Constructors

Link copied to clipboard
constructor(answers: Map<String, Answer>, modelVersion: String? = null)

Types

Link copied to clipboard
class Builder

Fluent builder for ClassifierResponse, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Maps each caller-chosen question ID from ClassifierRequest.questions to its Answer.

Link copied to clipboard

The concrete model version reported by the provider, or null when unreported.

Functions

Link copied to clipboard

Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.