import { useResearchAgent } from '../hooks/useResearchAgent'; import { AgentSessionSidebar } from '../components/agent/AgentSessionSidebar'; import { AgentMessageList } from '../components/agent/AgentMessageList'; import { AgentInputArea } from '../components/agent/AgentInputArea'; import type { StandardPaper } from '../types'; import type { useCitations } from '../hooks/useCitations'; import type { useLibrary } from '../hooks/useLibrary'; import type { TabId } from '../components/layout/Sidebar'; interface ResearchAgentPanelProps { showConfirm?: ( message: string, onConfirm: () => void, title?: string ) => void; showAlert?: (message: string, title?: string) => void; openReader?: (paper: StandardPaper, skipTabSwitch?: boolean) => void; setActiveTab?: (tab: TabId) => void; citations?: ReturnType; library?: ReturnType; } export function ResearchAgentPanel({ showConfirm, showAlert, openReader, setActiveTab, citations, library, }: ResearchAgentPanelProps) { const state = useResearchAgent({ showConfirm, showAlert }); return (
{/* 左侧会话列表侧栏 */} {/* 右侧会话对话展示及输入面板 */}
); }