wwf
2025-05-20 938c3e5a587ce950a94964ea509b9e7f8834dfae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import type {
  ModelConfig,
  VisionFile,
  VisionSettings,
} from '@/types/app'
import type { ExternalDataTool } from '@/models/common'
export type { VisionFile } from '@/types/app'
export { TransferMethod } from '@/types/app'
 
export type UserInputForm = {
  default: string
  label: string
  required: boolean
  variable: string
}
 
export type UserInputFormTextInput = {
  'text-input': UserInputForm & {
    max_length: number
  }
}
 
export type UserInputFormSelect = {
  select: UserInputForm & {
    options: string[]
  }
}
 
export type UserInputFormParagraph = {
  paragraph: UserInputForm
}
 
export type VisionConfig = VisionSettings
 
export type EnableType = {
  enabled: boolean
}
 
export type TextGenerationConfig = Omit<ModelConfig, 'model'> & {
  external_data_tools: ExternalDataTool[]
}
 
export type OnSend = (message: string, files?: VisionFile[]) => void