hashbrown

UiDecisionResourceBaseOptions

Options shared by both modes of uiDecisionResource.

minConfidence
number

The minimum confidence (for 'one') or best probability (for { max }) needed to act on the decision. Defaults to 0.

optionOrder
'declared' | 'shuffled'

'shuffled' varies the order of the options on every request, to spread the model's bias toward the first option. Defaults to 'declared'.

select
Decision.Select

Whether to choose one option, or up to max options.

system

Context for the decision model (what your app is, what the input means). Sent with the input, and only to the decision: in chat mode the chat keeps its own system prompt.

transport
Decision.Transport

Overrides the provider's decision transport for the selection. Decision only: in chat mode the chat keeps its own transport.