chore: replace chat in web app (#2373)

This commit is contained in:
zxhlyh 2024-02-04 16:10:46 +08:00 committed by GitHub
commit 51d359268e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
49 changed files with 2100 additions and 92 deletions

View file

@ -70,6 +70,7 @@ export type PromptVariable = {
}
export type TextTypeFormItem = {
default: string
label: string
variable: string
required: boolean
@ -77,11 +78,19 @@ export type TextTypeFormItem = {
}
export type SelectTypeFormItem = {
default: string
label: string
variable: string
required: boolean
options: string[]
}
export type ParagraphTypeFormItem = {
default: string
label: string
variable: string
required: boolean
}
/**
* User Input Form Item
*/
@ -89,6 +98,8 @@ export type UserInputFormItem = {
'text-input': TextTypeFormItem
} | {
'select': SelectTypeFormItem
} | {
'paragraph': TextTypeFormItem
}
export type AgentTool = {