mirror of
https://github.com/langgenius/dify.git
synced 2026-02-09 23:20:12 -05:00
feat: Human Input Node (#32060)
The frontend and backend implementation for the human input node. Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: JzoNg <jzongcode@gmail.com> Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com> Co-authored-by: zhsama <torvalds@linux.do>
This commit is contained in:
@@ -93,7 +93,7 @@ export type MessageContent = {
|
||||
|
||||
export type CompletionConversationGeneralDetail = {
|
||||
id: string
|
||||
status: 'normal' | 'finished'
|
||||
status: 'normal' | 'finished' | 'paused'
|
||||
from_source: 'api' | 'console'
|
||||
from_end_user_id: string
|
||||
from_end_user_session_id: string
|
||||
@@ -367,3 +367,22 @@ export type AgentLogDetailResponse = {
|
||||
iterations: AgentIteration[]
|
||||
files: AgentLogFile[]
|
||||
}
|
||||
|
||||
export type PauseType = {
|
||||
type: 'human_input'
|
||||
form_id: string
|
||||
backstage_input_url: string
|
||||
} | {
|
||||
type: 'breakpoint'
|
||||
}
|
||||
|
||||
export type PauseDetail = {
|
||||
node_id: string
|
||||
node_title: string
|
||||
pause_type: PauseType
|
||||
}
|
||||
|
||||
export type WorkflowPausedDetailsResponse = {
|
||||
paused_at: string
|
||||
paused_nodes: PauseDetail[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user