chore: replace chat in web app (#2373)

This commit is contained in:
zxhlyh
2024-02-04 16:10:46 +08:00
committed by GitHub
parent 3f0c515355
commit 51d359268e
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 = {