API reference
@salmonui/chat/inline-assist
30 exported symbols: 2 functions, 18 interfaces, 9 types and 1 constant. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/chat/inline-assist';Functions
InlineAssistInlineAssistDictationDictation into the prompt: the Inputs SpeechToTextButton; the transcript is appended to the prompt text present when listening started. Render it as a child of…
Interfaces
InlineAssistAcceptEventInlineAssistApiImperative API (ref).InlineAssistBeforeSendEventInlineAssistCommandA slash command of the command menu.InlineAssistCommandSelectEventInlineAssistComposerRenderPropsInlineAssistContentOptionsInlineAssistCustomActionInlineAssistDiscardEventInlineAssistLocaleTextUser-visible strings.InlineAssistMessageOne prompt and its response.InlineAssistMessagesChangeEventInlineAssistOpenChangeEventInlineAssistPointA point in viewport coordinates (clientX / clientY).InlineAssistPropsInlineAssistRequestInlineAssistResponseActionEventInlineAssistSendEvent
Types
InlineAssistAdapterInlineAssistAnchorWhat the popover is placed next to: an element, a text range (the selection), a point, or a ref to an element.InlineAssistBuiltInActionBuilt-in response actions.InlineAssistDictationPropsSpeechToTextButton props; the transcript is written into the prompt.InlineAssistInputPropsProps of the default prompt <textarea>; spread them on a custom input in renderComposer.InlineAssistModeInlineAssistOpenChangeReasonInlineAssistResponseActionInlineAssistResponsePartA typed response part; a plain string chunk is { type: 'text', delta }. reasoning and tool parts are ignored by InlineAssist.