riku
10 小时以前 8e3f3890e93d097df4be744648b9ac404d20a558
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { ChatMarkdownProps } from '../chat-markdown/index';
export interface TdChatContentProps {
    content: {
        type: ObjectConstructor;
        value?: TdChatContentType;
        required?: boolean;
    };
    markdownProps?: {
        type: ObjectConstructor;
        value?: ChatMarkdownProps;
    };
    role: {
        type: StringConstructor;
        value?: 'user' | 'assistant' | 'system';
        required?: boolean;
    };
    status?: {
        type: StringConstructor;
        value?: 'error' | '';
    };
}
export interface TdChatContentType {
    type: 'text' | 'markdown';
    data: string;
}