|
|
|
|
@ -13,8 +13,14 @@ export type Feedbacktype = {
|
|
|
|
|
content?: string | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FeedbackFunc = (messageId: string, feedback: Feedbacktype) => Promise<any>
|
|
|
|
|
export type SubmitAnnotationFunc = (messageId: string, content: string) => Promise<any>
|
|
|
|
|
export type FeedbackFunc = (
|
|
|
|
|
messageId: string,
|
|
|
|
|
feedback: Feedbacktype
|
|
|
|
|
) => Promise<any>
|
|
|
|
|
export type SubmitAnnotationFunc = (
|
|
|
|
|
messageId: string,
|
|
|
|
|
content: string
|
|
|
|
|
) => Promise<any>
|
|
|
|
|
|
|
|
|
|
export type DisplayScene = 'web' | 'console'
|
|
|
|
|
|
|
|
|
|
@ -91,20 +97,22 @@ export type IChatItem = {
|
|
|
|
|
input?: any
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type MessageEnd = {
|
|
|
|
|
id: string
|
|
|
|
|
metadata: {
|
|
|
|
|
retriever_resources?: CitationItem[]
|
|
|
|
|
annotation_reply: {
|
|
|
|
|
export type Metadata = {
|
|
|
|
|
retriever_resources?: CitationItem[]
|
|
|
|
|
annotation_reply: {
|
|
|
|
|
id: string
|
|
|
|
|
account: {
|
|
|
|
|
id: string
|
|
|
|
|
account: {
|
|
|
|
|
id: string
|
|
|
|
|
name: string
|
|
|
|
|
}
|
|
|
|
|
name: string
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type MessageEnd = {
|
|
|
|
|
id: string
|
|
|
|
|
metadata: Metadata
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type MessageReplace = {
|
|
|
|
|
id: string
|
|
|
|
|
task_id: string
|
|
|
|
|
|