Options for {@link useDecision}.
API
interface UseDecisionOptions<S extends DecidableSchema> {debounceTime?: number;input: string | Decision.JsonValue | null | undefined;optionOrder?: 'declared' | 'shuffled';retries?: number;schema: S;system?: string;transport?: Decision.Transport;}UseDecisionOptions
@typeSDecidableSchemadebounceTime
numberMilliseconds to wait after an input change before sending.
input
string | Decision.JsonValue | null | undefinedThe input to decide about. null or undefined keeps the hook idle.
optionOrder
'declared' | 'shuffled'Order of options in questions; shuffled varies per request.
retries
numberNumber of retries for retryable transport errors.
schema
SThe decidable schema whose questions the model answers.
system
stringOptional system text sent along with the input.
transport
Decision.TransportOverrides the provider's decision transport for this hook.