feat: support output agent info

This commit is contained in:
Joel
2024-01-29 13:00:14 +08:00
parent 2019d8f3e3
commit b62e34c6fa
9 changed files with 239 additions and 27 deletions

View File

@ -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[]
}