import ModelIcon from '@/new-components/chat/content/ModelIcon'; import { SwapRightOutlined } from '@ant-design/icons'; import { GPTVis } from '@antv/gpt-vis'; import ReferencesContent from './ReferencesContent'; import markdownComponents, { markdownPlugins, preprocessLaTeX } from './config'; interface Props { data: { sender: string; receiver: string; model: string | null; markdown: string; resource: any; }[]; } function AgentMessages({ data }: Props) { if (!data || !data.length) return null; return ( <> {data.map((item, index) => (
{item.model ? :
}
{item.sender} {item.receiver}
{preprocessLaTeX(item.markdown)}
{item.resource && item.resource !== 'null' && }
))} ); } export default AgentMessages;