Question configuration for an Ordinal Score evaluation.
Signature:
export declare interface ScoreQuestion
Properties
| Property | Type | Description |
|---|---|---|
| audioSamples | Float32Array | Optional mono 16kHz PCM audio samples in [-1.0, 1.0] for the context. |
| 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. |
| instructions | string | Optional task instruction prompt for the model. |
| 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. |
| rubric | string[] | List of ordered rubric grade descriptors from lowest to highest. |
| temperature | number | Softmax temperature override (> 0.0). When unset or <= 0, the model's calibrated temperature is used. |
ScoreQuestion.audioSamples
Optional mono 16kHz PCM audio samples in [-1.0, 1.0] for the context.
Signature:
audioSamples?: Float32Array;
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.instructions
Optional task instruction prompt for the model.
Signature:
instructions?: 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.rubric
List of ordered rubric grade descriptors from lowest to highest.
Signature:
rubric?: string[];
ScoreQuestion.temperature
Softmax temperature override (> 0.0). When unset or <= 0, the model's calibrated temperature is used.
Signature:
temperature?: number;