ScoreQuestion
struct ScoreQuestion: Sendable, EquatableConfiguration for evaluating an ordered rubric of levels and computing a continuous expected score.
-
Creates a new
ScoreQuestioninstance.Declaration
Swift
init(rubric: [String], temperature: Float = 0.0, instructions: String = "") -
Optional task instructions prepended to the rubric prompt.
Declaration
Swift
var instructions: String -
Ordered list of
Krubric levels from lowest (0) to highest (K - 1).Declaration
Swift
var rubric: [String] -
Softmax temperature override (
0.0uses the model's calibrated default).Declaration
Swift
var temperature: Float