ClassifierQuestion interface {#classifierquestion_interface}

A single question within a multi-question ClassifierSchema.

Signature:

export declare interface ClassifierQuestion 

Properties

Property Modifiers Type Description
id string Unique identifier key in the returned ClassifierResult record.
type ClassifierQuestionType Question evaluation type.
prompt string Task instruction or natural language condition prompt.
options ClassifierOption[] Candidate options (required for categorical and ordinal; optional for binary).
threshold number Decision threshold in [0.0, 1.0] for binary questions. Defaults to 0.5.
temperature number Softmax temperature override (> 0.0). When unset or <= 0, the model's calibrated temperature is used.
normalizePrior boolean Whether to normalize against the empty-context ("[None]") prior.

ClassifierQuestion.id {#classifierquestionid}

Unique identifier key in the returned ClassifierResult record.

Signature:

id: string;

ClassifierQuestion.type {#classifierquestiontype}

Question evaluation type.

Signature:

type: ClassifierQuestionType;

ClassifierQuestion.prompt {#classifierquestionprompt}

Task instruction or natural language condition prompt.

Signature:

prompt: string;

ClassifierQuestion.options {#classifierquestionoptions}

Candidate options (required for categorical and ordinal; optional for binary).

Signature:

options?: ClassifierOption[];

ClassifierQuestion.threshold {#classifierquestionthreshold}

Decision threshold in [0.0, 1.0] for binary questions. Defaults to 0.5.

Signature:

threshold?: number;

ClassifierQuestion.temperature {#classifierquestiontemperature}

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

Signature:

temperature?: number;

ClassifierQuestion.normalizePrior {#classifierquestionnormalizeprior}

Whether to normalize against the empty-context ("[None]") prior.

Signature:

normalizePrior?: boolean;