forked from tuvn86/webapp-conversation
feat: support output agent info
This commit is contained in:
parent
2019d8f3e3
commit
b62e34c6fa
9 changed files with 239 additions and 27 deletions
|
|
@ -1,4 +1,6 @@
|
|||
import type { Annotation } from './log'
|
||||
import type { Locale } from '@/i18n'
|
||||
import type { ThoughtItem } from '@/app/components/chat/type'
|
||||
|
||||
export type PromptVariable = {
|
||||
key: string
|
||||
|
|
@ -74,9 +76,12 @@ export type IChatItem = {
|
|||
* More information about this message
|
||||
*/
|
||||
more?: MessageMore
|
||||
isIntroduction?: boolean
|
||||
annotation?: Annotation
|
||||
useCurrentUserAvatar?: boolean
|
||||
isOpeningStatement?: boolean
|
||||
suggestedQuestions?: string[]
|
||||
log?: { role: string; text: string }[]
|
||||
agent_thoughts?: ThoughtItem[]
|
||||
message_files?: VisionFile[]
|
||||
}
|
||||
|
||||
|
|
|
|||
16
types/log.ts
Normal file
16
types/log.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
export type LogAnnotation = {
|
||||
content: string
|
||||
account: {
|
||||
id: string
|
||||
name: string
|
||||
email: string
|
||||
}
|
||||
created_at: number
|
||||
}
|
||||
|
||||
export type Annotation = {
|
||||
id: string
|
||||
authorName: string
|
||||
logAnnotation?: LogAnnotation
|
||||
created_at?: number
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue