hashbrown

UseDecisionOptions

Options for {@link useDecision}.

UseDecisionOptions
@typeS
DecidableSchema
debounceTime
number

Milliseconds to wait after an input change before sending.

input
string | Decision.JsonValue | null | undefined

The input to decide about. null or undefined keeps the hook idle.

optionOrder
'declared' | 'shuffled'

Order of options in questions; shuffled varies per request.

retries
number

Number of retries for retryable transport errors.

schema
S

The decidable schema whose questions the model answers.

system
string

Optional system text sent along with the input.

transport
Decision.Transport

Overrides the provider's decision transport for this hook.