feat: Human Input node (Frontend Part) (#31631)

Co-authored-by: JzoNg <jzongcode@gmail.com>
Co-authored-by: Joel <iamjoel007@gmail.com>
Co-authored-by: yessenia <yessenia.contact@gmail.com>
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
This commit is contained in:
Wu Tianwei
2026-01-30 10:16:46 +08:00
committed by GitHub
parent 5bf0251554
commit fedd097f63
198 changed files with 10955 additions and 1683 deletions

View File

@@ -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[]
}