Skip to content

useAsk

useAsk(options?): UseAskResult

Defined in: react/src/useAsk.ts:82

One conversation with the assistant. The session is kept between questions, so a follow-up continues the thread; reset() starts a new one. The answer streams: answer grows while status is streaming. The running question is stopped when a new one starts and when the component unmounts.

The answer is data. Where you render it, give it a space of its own (a panel or a dialog), since it grows as it is written.

UseAskOptions = {}

UseAskResult