Options for useUiDecision in candidates mode, where app code supplies fully rendered elements and the model only picks among them.
API
interface UseUiDecisionCandidatesOptions extends UseUiDecisionBaseOptions {candidates: ReadonlyArray < UiDecisionCandidate >;chat?: never;debounceTime?: number;input: string | Decision.JsonValue | null | undefined;}candidates
ReadonlyArray<UiDecisionCandidate>The elements the model chooses from.
chat
neverNot used in candidates mode.
debounceTime
numberHow long the input must stay unchanged, in milliseconds, before the selection is decided. Changing system asks again and resets the selection.
input
string | Decision.JsonValue | null | undefinedThe input to decide about. null or undefined keeps the hook idle.