Classify with an AI SDK decision model by asking one choice question whose
options are the labels. Decision models don't generate text, so the
result has no explanation. Label probabilities, the provider's confidence
(when it reports one) and the resolved model ID go in the metadata.
Choice limits and refusals are left to the AI SDK and the provider: a
refusal throws the AI SDK's Experimental_DecisionRefusalError.
Classify with an AI SDK decision model by asking one choice question whose options are the labels. Decision models don't generate text, so the result has no explanation. Label probabilities, the provider's confidence (when it reports one) and the resolved model ID go in the metadata.
Choice limits and refusals are left to the AI SDK and the provider: a refusal throws the AI SDK's
Experimental_DecisionRefusalError.