diff --git a/web/src/components/AgentChatComponent.vue b/web/src/components/AgentChatComponent.vue new file mode 100644 index 00000000..ee9c491d --- /dev/null +++ b/web/src/components/AgentChatComponent.vue @@ -0,0 +1,1175 @@ + + + + + + + + + {{ currentAgent.name }} + 请选择智能体 + + + selectAgent(key)"> + + {{ agent.name }} + + + + + + + {{ currentAgent.name }} + 加载中... + + + + + 新对话 + + + + + + {{ currentAgent ? currentAgent.name : '请选择一个智能体开始对话' }} + {{ currentAgent ? currentAgent.description : '不同的智能体有不同的专长和能力' }} + + + + + {{ message }} + + + + + + + + + + 正在调用工具: + {{ toolCall.function.name }} + + + 工具 {{ toolCall.function.name }} 执行完成 + + + + + + + + 参数: + + + {{ toolCall.function.arguments }} + + + + + 执行结果: + + {{ toolCall.toolResultMsg.content }} + + + + + + + + + + + + + + 请注意辨别内容的可靠性 + + + + + + + + + + diff --git a/web/src/components/AgentSingleViewComponent.vue b/web/src/components/AgentSingleViewComponent.vue deleted file mode 100644 index e69de29b..00000000 diff --git a/web/src/router/index.js b/web/src/router/index.js index 84945a8c..fd63f14f 100644 --- a/web/src/router/index.js +++ b/web/src/router/index.js @@ -31,29 +31,29 @@ const router = createRouter({ } ] }, - { - path: '/agent', - name: 'agent', - component: AppLayout, - children: [ - { - path: '', - name: 'AgentMain', - component: () => import('../views/AgentView.vue'), - meta: { keepAlive: true } - }, - { - path: ':agent_id', - name: 'AgentSinglePage', - component: () => import('../components/AgentSingleViewComponent.vue'), - meta: { keepAlive: false } - } - ] - }, + // { + // path: '/agent', + // name: 'agent', + // component: AppLayout, + // children: [ + // { + // path: '', + // name: 'AgentMain', + // component: () => import('../views/AgentView.vue'), + // meta: { keepAlive: true } + // }, + // { + // path: ':agent_id', + // name: 'AgentSinglePage', + // component: () => import('../components/AgentSingleViewComponent.vue'), + // meta: { keepAlive: false } + // } + // ] + // }, { path: '/agent/:agent_id', name: 'AgentSinglePage', - component: () => import('../views/AgentView.vue'), + component: () => import('../components/AgentChatComponent.vue'), }, { path: '/graph', diff --git a/web/src/views/AgentSingleView.vue b/web/src/views/AgentSingleView.vue new file mode 100644 index 00000000..49b0ffe5 --- /dev/null +++ b/web/src/views/AgentSingleView.vue @@ -0,0 +1,7 @@ + + + Agent Single View + + + + diff --git a/web/src/views/AgentView.vue b/web/src/views/AgentView.vue index 0a2f31bf..d9405ab7 100644 --- a/web/src/views/AgentView.vue +++ b/web/src/views/AgentView.vue @@ -1,1175 +1,7 @@ - - - - - - - - {{ currentAgent.name }} - 请选择智能体 - - - selectAgent(key)"> - - {{ agent.name }} - - - - - - - {{ currentAgent.name }} - 加载中... - - - - - 新对话 - - - - - - {{ currentAgent ? currentAgent.name : '请选择一个智能体开始对话' }} - {{ currentAgent ? currentAgent.description : '不同的智能体有不同的专长和能力' }} - - - - - {{ message }} - - - - - - - - - - 正在调用工具: - {{ toolCall.function.name }} - - - 工具 {{ toolCall.function.name }} 执行完成 - - - - - - - - 参数: - - - {{ toolCall.function.arguments }} - - - - - 执行结果: - - {{ toolCall.toolResultMsg.content }} - - - - - - - - - - - - - - 请注意辨别内容的可靠性 - - - - + + Agent - - -
{{ currentAgent ? currentAgent.description : '不同的智能体有不同的专长和能力' }}
{{ toolCall.function.arguments }}
请注意辨别内容的可靠性