API reference
@salmonui/chat/conversation
52 exported symbols: 9 components, 33 interfaces, 9 types and 1 constant. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/chat/conversation';Components
Conversation<Conversation variant="chat" | "assistant"> with its parts as static members (also exported flat).ConversationComposerConversationDictationMicrophone button of the composer, from the assistant chunk; disabled until recognition is available.ConversationHeaderConversationItemDefault content of a feed item; use it in renderItem to decorate items.ConversationItemActionsMessage actions toolbar: APG Toolbar keys, visible on hover and focus within the item.ConversationJumpButtonJump to the latest message, with the unread count. Hidden at the bottom.ConversationSuggestionsQuick replies: a labelled group of buttons, each sends its text.
Interfaces
ConversationApiConversationAttachEventConversationAttachmentA file attached to a message or pending in the composer.ConversationAttachmentErrorA rejected file (too large, too many, wrong type) or a failed upload.ConversationAttachmentEventConversationAttachmentOptionsConversationBeforeAttachEventConversationBeforeMentionSelectEventConversationBeforeSendEventConversationChangeEventConversationComposerPropsConversationContentContextContext of renderContent.ConversationCustomActionConversationDictationPropsConversation.Dictation: a microphone button over the Inputs useSpeechRecognition.ConversationHeaderPropsConversationItemActionEventConversationItemActionsPropsConversationItemPropsConversationItemRenderContextConversationJumpButtonPropsConversationLocaleTextConversationMentionConfigA mention trigger of the composer, through the Dropdowns Mention.ConversationMentionSelectEventConversationMentionUserConversationMessageConversationPropsConversationReplyPreviewQuoted preview of a reply target that is not loaded.ConversationRequestConversationSendEventConversationSuggestionsPropsConversationTypingEventConversationUser
Types
ConversationActionItemConversationAdapterBot and assistant replies: a Promise is one final response, an AsyncIterable streams text chunks and response parts. The signal aborts on Stop, api.stop(), a n…ConversationBuiltInActionBuilt-in message actions: chat and assistant items.ConversationChangeReasonWhat caused a change: the composer, a built-in action, a bot response or the API.ConversationMessageStatusDelivery status of a message.ConversationPartConversationResponsePartA non-text part of an assistant response; a plain string chunk is a text delta.ConversationToolPartA tool part.ConversationUploadTransportUpload transport (the Inputs FileUpload contract shape).