Skip to content

Vue components ​

Everything on this page is exported from the package root. For guidance on when to use each control, see Components; for layouts built from them, see Assembling a custom layout.

ConversationPane ​

ts
import { ConversationPane } from '@korus-dev/agent-ui-sdk';

ConversationPane is generic over the Payload type of host menu items and mentions. It resolves state and actions from controller; individual props are the controlled alternative.

Props ​

Controller and identity

PropTypeDefaultPurpose
controllerConversationPaneControllerSourceGrouped state and actions. Takes precedence over controlled props
conversationKeystring | number | nullStable identity; resets scroll and the composer when it changes
ariaLabelstring'Conversation'Accessible label
autofocusbooleanfalseFocus the composer on mount

Transcript

PropTypeDefaultPurpose
messages(ChatMessage | ConversationMessageInput)[]The transcript
turnsTurn[]Turn grouping, durations and summary details
activeTurnIdstring | nullThe running turn
busybooleanA turn is active
disabledbooleanDisable input and actions
errorstring | nullError shown above the composer
transformMessage(message, index) => messageAdjust each message before rendering
renderStrategy'eager' | 'lazy''lazy'Transcript mounting
lazyMessagesbooleanDeprecated: use renderStrategy
initialMessageBatchSize, messageBatchSizenumber50, 25Lazy batches
messageTextSelectionbooleanEmit selection changes
emptyTitle, emptyDescriptionstring'Start a conversation', ''Empty state
scrollToBottomLabelstring'Scroll to bottom'Accessible label
toolVisibility(toolCall) => booleanHide tool calls from the transcript
showToolDetailsbooleanproviderShow raw tool details
presentationConversationPresentationall onHide optional UI
openImage, openConversationLink, openVisualizationhandlersHost navigation

History and thread

PropTypePurpose
hasOlderHistory, historyLoading, loadingOlderHistorybooleanHistory state
requestsAgentRequest[]Pending approvals, questions and confirmations
answeredClientRequestIdsReadonlySet<string>Settled requests in restored history
goalThreadGoal | nullGoal shown in the shelf
queuedPromptsQueuedPromptData[]Prompts waiting behind the active turn
turnGitDiffTurnGitDiff | nullPer-turn diff summary
contextUsageContextUsage | nullContext window

Composer and catalogs

PropTypePurpose
composerStateComposerStateControlled draft
attachmentsHostAttachment[]Selected attachments
attachEnabledboolean (default true)Attach entry
placeholder, suggestedPrompt, emptySendPromptstringHint and empty-send text
promptHistory, readPromptHistoryUp/Down recall
followUpBehavior, followUpsDisabled'queue' | 'steer', booleanBusy submission
capabilitiesCapabilitiesWhich controls exist
models, modelCatalogStatus, selectedModelId, selectedReasoningEffort, selectedServiceTierModel controls
harnesses, harnessHarnessChoice[], stringTabs and selected tab of the composer's model picker
commands, skills, plugins, files, mentionGroups, skillCatalogStatusSuggestion catalogs
permission, permissions, planModeComposer menu state
leadingMenuItems, menuItemsComposerMenuItem[]Host menu items
hasComposerContextbooleanAllow sending when the host supplies external context
escapeInterruptboolean (default true)Double-Escape interrupts
transcribeAudio, pickAttachments, ingestAttachmentsHost port overrides

Policy

actionsDisabled, canDeleteTurn (true), canEditTurn (true), canForkTurn (false), canRetryTurn (true).

Events ​

EventPayload
submit, steerprompt, options? (ReferenceSendPromptOptions)
sendFollowUpprompt
interrupt, cancel, continueInterruptedTurn
respondAgentRequestResponse
attach, attachmentsChangeattachments
requestSkills
editTurn{ content, turnId, options? }
deleteTurn, retryTurn, forkTurn, loadTurnHistoryturnId
loadOlderHistory
copyMessage, quoteMessageindex
messageTextSelectionChangeMessageTextSelection | null
openLinkConversationLink
openVisualizationConversationVisualization
menuSelectComposerMenuSelectableItem
mentionSelectitem, group
deleteQueuedPrompt, updateQueuedPrompt, steerQueuedPromptprompt id, text, options
clearGoal, editGoal
errormessage | null
update:composerState, update:modelId, update:reasoningEffort, update:serviceTier, update:permission, update:planMode, update:harness, update:modelValueNew value

With a controller, the matching action runs instead of the event for the actions the controller defines. The pane emits update:permission alongside the other update:* events when no controller handles settings.

Slots ​

empty, approval, before-composer, after-composer, composer-replacement, composer-context, composer-drawers, composer-shelf-actions, composer-after-input, composer-after, composer-attachment-actions, menu-icon, menu-item, suggestion-item, mention, message, message-header, message-block, message-text, message-attachment, message-tool, message-actions, message-status and message-thinking. Slot props are listed in the conversation pane guide.

Controls ​

ExportRole
ConversationPaneHistory, requests, messages, queue and composer
ComposerThe prompt box
MessageListThe transcript
Message, MessageTurnOne message, one turn
ApprovalPromptApproval card
ModelPickerModel, reasoning and speed list
HarnessModelSelectorHarness tabs above a model list, in a popover
ConversationHistoryLoaderHistory skeleton
ScrollToBottomFloating scroll button
WorkbenchLayoutHeader, body and footer layout

Composer family ​

ComposerMenu, ComposerMenuList, ComposerSendButton, ComposerActionMenu, ComposerActiveModes, ComposerSlashMenu, ComposerSkillMenu, ComposerPluginMenu, ComposerFileMentionMenu, ComposerAtMentionMenu, ComposerShelf, ComposerDrawer, ComposerDrawerRow, ComposerVoiceButton, ComposerVoiceField, RichTextEditor, MentionChip, ContextUsageIndicator, UltrafastIcon.

Message family ​

MessageBlock, MessageActions, MessageEditor, UserText, CompactionMessage, FollowUps, WorkGroup, FoldTransition, IconButton, CopyButton, AnimatedDiffStat, TurnGitInfo.

Rich blocks, tools and requests ​

MediaBlock, AttachmentBlock, MermaidBlock, VisualizationBlock, ImageLightbox, ToolGroup, ToolCall, ToolCallTitle, ToolIcon, ToolConfirmation, ToolUserInputRequest, QuestionRequest, QueuedPrompts, QueuedPrompt, Goal.

Documents ​

MarkdownPanel, SourcePreviewPanel, DiffPreviewPanel, AnnotationPopup, CodeSelectionAnnotation. See Documents.

Functions and helpers ​

ExportPurpose
createSessionConversationController(options)Bind a session to the pane. See session
createConversationPaneController(options)Grouped controller adapter
sessionStateToConversationPaneState(...)Project a session snapshot
resolveConversationPaneValue(source)Read a value, ref or getter
requestResponseFromClientResponse, requestResponseFromApprovalRequest response helpers
toHarnessPromptOptions(options, resolver?)Translate prompt options at the trusted boundary
applyTheme(element, options)Apply a theme and tokens
defaultConversationPresentation, resolveConversationPresentationPresentation defaults
toChatMessage, toChatMessages, conversationMessageToChatMessageAdapt messages
createQueuedChatPrompt(text)Create a queue entry
renderMarkdown, renderCodeBlock, languageForFilePathRendering
parseUserText, parseAuthoredUserText, humanizeMentionNameAuthored user text
filterComposerCommands, filterComposerSkills, filterComposerPlugins, filterComposerMentionGroups, findComposerMentionSuggestion filtering
commandDescription, skillDescription, skillDisplayName, skillInsertText, skillMatchesMention, promptSkillInputsFromText, pluginDescription, pluginDisplayName, pluginInsertText, pluginMatchesMentionCatalog item helpers
conversationLinkFromHref, parseEditorFileReferenceLink handling
collectMarkdownHeadings, sanitizeSvg, describeCodeRange, fileKindColor (a color map), useCodeSelectionDocument helpers
useComposerVoice(options)Voice controller
registerToolTitlePresenter(presenter)Compatibility global tool title presenter

Providers ​

provideChatTranslate / useChatTranslate / defaultChatTranslate, provideToolCallDetails / useToolCallDetails, provideToolPresentation / useToolPresentation, provideHostCapabilities / useHostCapabilities, getGlobalHostCapabilities (getNativeRendererApi is a deprecated alias), pickAttachments, ingestAttachments and customBlocksKey. See Vue providers.

Types ​

Controller: ConversationPaneState, ConversationPaneActions, ConversationPaneController, ConversationPaneControllerOptions, ConversationPaneControllerSource, ConversationPaneValueSource, the ConversationPane*State groups, ConversationPanePolicy, ConversationSubmissionResult, ConversationRenderStrategy.

Session: SessionConversationClient, SessionConversationControllerOptions, SessionConversationControls, SessionRequestResponse.

Messages: ChatMessage, ChatMessagePart, MessageInput, ConversationMessageInput, MessageAttachment, MessageMedia, MessageToolCall, MessageSuggestedPrompt, ToolExecutionState, ToolStatusDescriptor, ToolVisibility, UserTextToken, MessageImage, MessageImageContext, MessageImageOpenHandler, MessageTextSelection, ConversationVisualization, QueuedPromptData.

Composer: ComposerState, ModelSelection, ComposerMenuItem and its variants, ComposerMentionGroup, ComposerMentionItem, RichTextEditorExpose, ComposerVoiceController, ComposerVoiceOptions.

See Contracts and presentation for capability, catalog and presentation types.

Released under the Apache License 2.0.