Score

data class Score @JvmOverloads constructor(val instructions: ClassifierContent? = null, val criteria: List<ClassifierContent>) : Question

Asks a Classifier to place an input on an ordered rubric starting at level 0.

Constructors

Link copied to clipboard
constructor(instructions: ClassifierContent? = null, criteria: List<ClassifierContent>)
constructor(instructions: String?, criteria: List<String>)

Creates a Score with plain-text instructions and level descriptions. Because instructions has no default here, a call that omits it resolves to the primary constructor.

Types

Link copied to clipboard
class Builder

Fluent builder for Score, 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

One description per rubric level (at least two), starting at 0.

Link copied to clipboard
open override val instructions: ClassifierContent?

What to rate.

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.