The selection decision behind useUiDecision in chat mode.
API
interface UseUiDecisionChatDecision {error: Error | undefined;isLoading: boolean;meta: Decision.Meta < DecidableSchema > |
null;stop: () => void;value: s.Infer < DecidableSchema > |
null;}error
Error | undefinedThe last decision failure; the same as decisionError.
isLoading
booleanWhether a decision is in flight.
meta
Decision.Meta<DecidableSchema> | nullMetadata mirroring the value, or null.
stop
() => voidAborts the pending decision. It does not cancel the send: the message is still sent, with every component.
value
s.Infer<DecidableSchema> | nullThe last decoded selection, or null.