answer node

This commit is contained in:
StyleZhang
2024-03-19 14:50:07 +08:00
parent 0b7cdd1e5d
commit ced6a5c18b
19 changed files with 68 additions and 41 deletions

View File

@ -4,6 +4,8 @@ import type {
VisionSettings,
} from '@/types/app'
import type { IChatItem } from '@/app/components/app/chat/type'
import type { NodeTracing } from '@/types/workflow'
import type { WorkflowRunningStatus } from '@/app/components/workflow/types'
export type { VisionFile } from '@/types/app'
export { TransferMethod } from '@/types/app'
@ -48,7 +50,14 @@ export type ChatConfig = Omit<ModelConfig, 'model'> & {
supportCitationHitInfo?: boolean
}
export type ChatItem = IChatItem
export type WorkflowProcess = {
status: WorkflowRunningStatus
nodes: NodeTracing[]
}
export type ChatItem = IChatItem & {
workflowProcess?: WorkflowProcess
}
export type OnSend = (message: string, files?: VisionFile[]) => void