Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(types): replace any[] with ThoughtItem[] for agent_thoughts (#41141)

Aarush Karakd9ca69d34f6e
diff --git a/oxlint-suppressions.json b/oxlint-suppressions.json
index d6af212f134..7f0f305e772 100644
--- a/oxlint-suppressions.json
+++ b/oxlint-suppressions.json
@@ -5176,7 +5176,7 @@
"count": 1
},
"typescript/no-explicit-any": {
- "count": 7
+ "count": 6
}
},
"web/models/pipeline.ts": {
diff --git a/web/models/log.ts b/web/models/log.ts
index ff51d060747..fb2f202e710 100644
--- a/web/models/log.ts
+++ b/web/models/log.ts
@@ -1,5 +1,5 @@
import type { Viewport } from 'reactflow'
-import type { Metadata } from '@/app/components/base/chat/chat/type'
+import type { Metadata, ThoughtItem } from '@/app/components/base/chat/chat/type'
import type { Edge, Node } from '@/app/components/workflow/types'
import type { VisionFile } from '@/types/app'
@@ -79,7 +79,7 @@ type MessageContent = {
}>
message_files: VisionFile[]
metadata: Metadata
- agent_thoughts: any[] // TODO
+ agent_thoughts: ThoughtItem[]
workflow_run_id: string
parent_message_id: string | null
}