mirror of
https://github.com/langgenius/dify.git
synced 2026-11-14 07:11:06 +08:00
14 lines
330 B
TypeScript
14 lines
330 B
TypeScript
import type { NodeTracing } from '@/types/workflow'
|
|
import { createContext } from 'react'
|
|
|
|
export type WorkflowRunInfo = {
|
|
appId: string
|
|
runId: string
|
|
status: string
|
|
}
|
|
|
|
export const WorkflowToolTracingContext = createContext<{
|
|
workflowRun: WorkflowRunInfo
|
|
onShowWorkflowTool: (node: NodeTracing) => void
|
|
} | null>(null)
|