ScoreQuestion interface

Question configuration for an Ordinal Score evaluation.

Signature:

export declare interface ScoreQuestion 

Properties

Property Modifiers Type Description
rubric string[] List of ordered rubric grade descriptors from lowest to highest.
options ClassifierOption[] Ordered list of rubric levels with { label, description }. When all label values parse as finite numbers (e.g. "1".."5"), expectedScore is computed directly over those numeric level values.
temperature number Softmax temperature override (> 0.0). When unset or <= 0, the model's calibrated temperature is used.
instructions string Optional task instruction prompt for the model.
context string Optional domain or schema context prepended to instructions.
imageBytes Uint8Array Optional raw encoded image bytes (PNG, JPEG, WebP, or TGA) for the context.
audioSamples Float32Array Optional mono 16kHz PCM audio samples in [-1.0, 1.0] for the context.

ScoreQuestion.rubric

List of ordered rubric grade descriptors from lowest to highest.

Signature:

rubric?: string[];

ScoreQuestion.options

Ordered list of rubric levels with { label, description }. When all label values parse as finite numbers (e.g. "1".."5"), expectedScore is computed directly over those numeric level values.

Signature:

options?: ClassifierOption[];

ScoreQuestion.temperature

Softmax temperature override (> 0.0). When unset or <= 0, the model's calibrated temperature is used.

Signature:

temperature?: number;

ScoreQuestion.instructions

Optional task instruction prompt for the model.

Signature:

instructions?: string;

ScoreQuestion.context

Optional domain or schema context prepended to instructions.

Signature:

context?: string;

ScoreQuestion.imageBytes

Optional raw encoded image bytes (PNG, JPEG, WebP, or TGA) for the context.

Signature:

imageBytes?: Uint8Array;

ScoreQuestion.audioSamples

Optional mono 16kHz PCM audio samples in [-1.0, 1.0] for the context.

Signature:

audioSamples?: Float32Array;