mirror of
https://github.com/langgenius/dify.git
synced 2026-05-09 21:28:25 +08:00
Extend human input runtime data types
This commit is contained in:
parent
5faa4f9520
commit
37f79ee5d1
@ -331,7 +331,7 @@ export type HumanInputFormData = {
|
||||
inputs: FormInputItem[]
|
||||
actions: UserAction[]
|
||||
form_token: string
|
||||
resolved_default_values: Record<string, string>
|
||||
resolved_default_values: Record<string, HumanInputResolvedValue>
|
||||
display_in_ui: boolean
|
||||
expiration_time: number
|
||||
}
|
||||
@ -343,12 +343,17 @@ export type HumanInputRequiredResponse = {
|
||||
data: HumanInputFormData
|
||||
}
|
||||
|
||||
export type HumanInputFormValue = string | FileResponse | FileResponse[]
|
||||
|
||||
export type HumanInputResolvedValue = string | FileResponse | FileResponse[]
|
||||
|
||||
export type HumanInputFilledFormData = {
|
||||
node_id: string
|
||||
node_title: string
|
||||
rendered_content: string
|
||||
action_id: string
|
||||
action_text: string
|
||||
form_data?: Record<string, HumanInputFormValue>
|
||||
}
|
||||
|
||||
export type HumanInputFormFilledResponse = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user