Chat · Components
AssistantQuestionForm
No summary has been written for AssistantQuestionForm. Everything below is generated from the declaration shipped in 0.57.40 and describes the real contract.Public export
typescript
import { AssistantQuestionForm } from '@happyvertical/smrt-chat/svelte';- Import path
@happyvertical/smrt-chat/svelte- Props
- 5
- Props described
- 5 of 5
- Bindable state
- 0
- Callback events
- 1
- Verified release
- 0.57.40
Props
NameTypeRequiredDescription
questionAssistantQuestionYesThe structured question to ask: its prompt, fields and options.answeredAssistantQuestionAnswer | nullNoThe answer, when given (from the question itself or the host).onsubmit(values: AssistantQuestionAnswer) => void | Promise<void>YesCalled once with the chosen values; the host continues the turn.autofocusbooleanNoMove focus into the form when it appears (the newest message).disabledbooleanNoLock the controls (a turn is in flight elsewhere).Bindable state
This component has no bindable public state.
Callback events
onsubmit(values: AssistantQuestionAnswer) => void | Promise<void>