@difizen/libro-ai-native
Version:
46 lines • 1.56 kB
TypeScript
/// <reference types="react" resolution-mode="require"/>
import type { CellView, LibroView } from '@difizen/libro-jupyter';
import { ChatView } from '@difizen/magent-chat';
import breaks from 'remark-breaks';
import remarkGfm from 'remark-gfm';
import './index.less';
import type { AiNativeChatViewOption } from './protocol.js';
export declare class LibroAiNativeChatView extends ChatView {
isCellChat: boolean;
libro?: LibroView;
cell?: CellView;
constructor(option: AiNativeChatViewOption);
getMarkdownProps(): {
components: {
code: (props: any) => import("react/jsx-runtime").JSX.Element;
img: ({ src, alt }: any) => JSX.Element;
};
remarkPlugins: (typeof remarkGfm | typeof breaks)[];
rehypePlugins: any[];
};
protected toMessageOption(msgContent: string): {
sender: {
type: string;
};
input: string;
system_prompt: string;
id: string;
created?: string | undefined;
messages?: import("@difizen/magent-chat").IChatMessageItem[] | undefined;
modified?: string | undefined;
stream: boolean;
token?: any;
} | {
sender: {
type: string;
};
input: string;
id: string;
created?: string | undefined;
messages?: import("@difizen/magent-chat").IChatMessageItem[] | undefined;
modified?: string | undefined;
stream: boolean;
token?: any;
};
}
//# sourceMappingURL=libro-ai-native-chat-view.d.ts.map