+
+
setCollapseState(!collapseState)}
+ >
+ {!hideProcessDetail && (
+
+ )}
+
+ {nodeInfo.title}
+ }
+ >
+
{nodeInfo.title}
+
+ {nodeInfo.status !== 'running' && !hideInfo && (
+
{nodeInfo.execution_metadata?.total_tokens ? `${getTokenCount(nodeInfo.execution_metadata?.total_tokens || 0)} tokens · ` : ''}{`${getTime(nodeInfo.elapsed_time || 0)}`}
+ )}
+ {nodeInfo.status === 'succeeded' && (
+
+ )}
+ {nodeInfo.status === 'failed' && (
+
+ )}
+ {nodeInfo.status === 'stopped' && (
+
+ )}
+ {nodeInfo.status === 'exception' && (
+
+ )}
+ {nodeInfo.status === 'running' && (
+
+ Running
+
+
+ )}
+ {!inPublishMode && (
+
+
+
+ )}
+
+ {!collapseState && !hideProcessDetail && (
+
+ {/* The nav to the iteration detail */}
+ {isIterationNode && !notShowIterationNav && onShowIterationDetail && (
+
+ )}
+ {/* The nav to the Loop detail */}
+ {isLoopNode && !notShowLoopNav && onShowLoopDetail && (
+
+ )}
+ {isRetryNode && onShowRetryDetail && (
+
+ )}
+ {
+ (isAgentNode || isToolNode) && onShowAgentOrToolLog && (
+
+ )
+ }
+
+ {(nodeInfo.status === 'stopped') && (
+
+ {t('workflow.tracing.stopBy', { user: nodeInfo.created_by ? nodeInfo.created_by.name : 'N/A' })}
+
+ )}
+ {(nodeInfo.status === 'exception') && (
+
+ {nodeInfo.error}
+
+ {t('workflow.common.learnMore')}
+
+
+ )}
+ {nodeInfo.status === 'failed' && (
+
+ {nodeInfo.error}
+
+ )}
+ {nodeInfo.status === 'retry' && (
+
+ {nodeInfo.error}
+
+ )}
+
+ {nodeInfo.inputs && (
+
+ {inputsTitle}
}
+ language={CodeLanguage.json}
+ value={nodeInfo.inputs}
+ isJSONStringifyBeauty
+ />
+
+ )}
+ {nodeInfo.process_data && (
+
+ {processDataTitle}
}
+ language={CodeLanguage.json}
+ value={nodeInfo.process_data}
+ isJSONStringifyBeauty
+ />
+
+ )}
+ {nodeInfo.outputs && (
+