import type { LLMTraceItem, NodeTracing } from '@/types/workflow' import { RiArrowRightSLine, } from '@remixicon/react' import { useTranslation } from 'react-i18next' import Button from '@/app/components/base/button' import { Thinking } from '@/app/components/base/icons/src/vender/workflow' type LLMLogTriggerProps = { nodeInfo: NodeTracing onShowLLMDetail: (detail: LLMTraceItem[]) => void } const LLMLogTrigger = ({ nodeInfo, onShowLLMDetail, }: LLMLogTriggerProps) => { const { t } = useTranslation() const llmTrace = nodeInfo?.execution_metadata?.llm_trace || [] const handleShowLLMDetail = (e: React.MouseEvent) => { e.stopPropagation() e.nativeEvent.stopImmediatePropagation() onShowLLMDetail(llmTrace || []) } return ( ) } export default LLMLogTrigger