import type { AgentLogItemWithChildren, NodeTracing } from '@/types/workflow' import { useTranslation } from 'react-i18next' type AgentLogTriggerProps = { nodeInfo: NodeTracing onShowAgentOrToolLog: (detail?: AgentLogItemWithChildren) => void } export function AgentLogTrigger({ nodeInfo, onShowAgentOrToolLog }: AgentLogTriggerProps) { const { t } = useTranslation() const { agentLog, execution_metadata } = nodeInfo const agentStrategy = execution_metadata?.tool_info?.agent_strategy return ( ) }