'use client' import { useTranslation } from 'react-i18next' import type { FC } from 'react' import ToolCall from './tool-call' import cn from '@/utils/classnames' import type { AgentIteration } from '@/models/log' type Props = { isFinal: boolean index: number iterationInfo: AgentIteration } const Iteration: FC = ({ iterationInfo, isFinal, index }) => { const { t } = useTranslation() return (
{isFinal && (
{t('appLog.agentLogDetail.finalProcessing')}
)} {!isFinal && (
{`${t('appLog.agentLogDetail.iteration').toUpperCase()} ${index}`}
)}
{iterationInfo.tool_calls.map((toolCall, index) => ( ))}
) } export default Iteration