ScoreQuestion
struct ScoreQuestion: Sendable, EquatableConfiguration for evaluating an ordered rubric of levels and computing a continuous expected score.
-
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 rubric levels from lowest (
0.0) to highest (1.0).Declaration
Swift
var rubric: [String] -
Softmax temperature override (
0.0uses the model's calibrated default).Declaration
Swift
var temperature: Float