mirror of
https://github.com/langgenius/dify.git
synced 2026-05-11 23:18:39 +08:00
Refine human input extra content types
This commit is contained in:
parent
37f79ee5d1
commit
63711bf1dc
@ -66,18 +66,20 @@ export type CitationItem = {
|
||||
word_count: number
|
||||
}
|
||||
|
||||
export type ExtraContent
|
||||
= {
|
||||
type: 'human_input'
|
||||
submitted: false
|
||||
form_definition: HumanInputFormData
|
||||
workflow_run_id: string
|
||||
}
|
||||
| {
|
||||
type: 'human_input'
|
||||
submitted: true
|
||||
form_submission_data: HumanInputFilledFormData
|
||||
}
|
||||
export type PendingHumanInputExtraContent = {
|
||||
type: 'human_input'
|
||||
submitted: false
|
||||
form_definition: HumanInputFormData
|
||||
workflow_run_id: string
|
||||
}
|
||||
|
||||
export type SubmittedHumanInputExtraContent = {
|
||||
type: 'human_input'
|
||||
submitted: true
|
||||
form_submission_data: HumanInputFilledFormData
|
||||
}
|
||||
|
||||
export type ExtraContent = PendingHumanInputExtraContent | SubmittedHumanInputExtraContent
|
||||
|
||||
export type IChatItem = {
|
||||
id: string
|
||||
|
||||
Loading…
Reference in New Issue
Block a user