Skip to documentation
UI

EditableMessageList

EditableMessageList is a React component that allows users to edit a list of chat messages, including their content and role. It is designed to be used in chatbot building applications.

import { EditableMessageList } from '@lobehub/ui/chat';
Data Entry

Default

Loading preview

APIs

EditableMessageList properties
dataSourcesRequired
LLMMessage[]
disabled
boolean
onChange
(chatMessages: LLMMessage[]) => void
texts
{ addProps?: string; delete?: string; input?: string; inputPlaceholder?: string; output?: string; outputPlaceholder?: string; system?: string; }

Types

interface LLMMessage {
  content: string;
  role: string;
  // Additional properties for chat messages
}