ModelPreferences

The server's preferences for model selection during sampling. All fields are optional. The priority values, when set, are clamped at the wire boundary to the spec's 0..1 range by the consuming client.

Members

Functions

empty
bool empty()

True when no preference is set (so CreateMessageRequest.toJson can omit the whole modelPreferences object).

Variables

costPriority
Nullable!double costPriority;

0..1: importance of minimizing cost

hints
ModelHint[] hints;

ordered model name hints, most preferred first

intelligencePriority
Nullable!double intelligencePriority;

0..1: importance of capability

speedPriority
Nullable!double speedPriority;

0..1: importance of minimizing latency