import { useMemo } from 'react'; import { ChevronLeft } from 'lucide-react'; import { AgentCapabilities } from 'librechat-data-provider'; import { useFormContext, Controller } from 'react-hook-form'; import type { AgentForm } from '~/common'; import { useAgentPanelContext } from '~/Providers'; import MaxAgentSteps from './MaxAgentSteps'; import AgentHandoffs from './AgentHandoffs'; import { useLocalize } from '~/hooks'; import AgentChain from './AgentChain'; import { Panel } from '~/common'; export default function AdvancedPanel() { const localize = useLocalize(); const methods = useFormContext(); const { control, watch } = methods; const currentAgentId = watch('id'); const { agentsConfig, setActivePanel } = useAgentPanelContext(); const chainEnabled = useMemo( () => agentsConfig?.capabilities.includes(AgentCapabilities.chain) ?? false, [agentsConfig], ); return (
{localize('com_ui_advanced_settings')}
} /> {chainEnabled && ( } /> )}
); }