mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 17:08:03 +08:00
feat: implement SSE for data source node processing and completion events, replacing previous run methods
This commit is contained in:
17
web/types/pipeline.tsx
Normal file
17
web/types/pipeline.tsx
Normal file
@ -0,0 +1,17 @@
|
||||
export type DataSourceNodeProcessingResponse = {
|
||||
event: 'datasource_processing'
|
||||
total: number
|
||||
completed: number
|
||||
}
|
||||
|
||||
export type DataSourceNodeError = {
|
||||
event: 'datasource_error'
|
||||
message: string
|
||||
code?: string
|
||||
}
|
||||
|
||||
export type DataSourceNodeCompletedResponse = {
|
||||
event: 'datasource_completed'
|
||||
data: any
|
||||
time_consuming?: number
|
||||
}
|
||||
Reference in New Issue
Block a user