Pārlūkot izejas kodu

feat:新增智能体国际化

hanyang 1 gadu atpakaļ
vecāks
revīzija
ff3fa4cef5

+ 46 - 1
public/i18n/lang-en.json

@@ -79,11 +79,56 @@
     "searchAppTip": "All Application Types",
     "searchLabelTip": "All Labels",
     "create_kb_title": "Create Knowledge Base",
+    "create_intel_title": "Create Intelligent Agent",
     "label_name": "Icon & Name",
     "label_desc": "Description",
     "input_placeholder": "Enter Name",
     "change_icon_title": "Change Icon",
-    "all_icon": "All Icons"
+    "all_icon": "All Icons",
+    "create_intelligent_title": "Create Intelligent Agent",
+    "create_btn": "Create",
+    "default_intelligent": {
+      "name_1": "Knowledge Q&A Assistant",
+      "name_2": "Chat Assistant",
+      "name_3": "Intelligent Agent",
+      "name_4": "Workflow Application",
+      "desc_1": "An intelligent Q&A assistant built based on a dedicated knowledge base, efficiently retrieving and answering domain-specific questions. Suitable for scenarios such as document Q&A, customer support, etc.",
+      "desc_2": "A conversational interaction assistant built on a large language model, suitable for multi-turn dialogue scenarios.",
+      "desc_3": "A conversational intelligent assistant that can decompose tasks, perform reasoning, and call tools. Suitable for handling complex tasks.",
+      "desc_4": "A flexible LLM workflow defined through process orchestration, enabling more stable and controllable outputs."
+    },
+    "rg_config": {
+      "title": "Agent Configuration",
+      "tab_1": "Assistant Settings",
+      "tab_2": "Prompt Engine",
+      "tab_3": "Model Settings",
+      "label_name": "Agent Name",
+      "input_placeholder": "Enter Name",
+      "label_icon": "Agent Icon",
+      "label_empty": "Empty Response",
+      "label_set_word": "Set Greeting",
+      "label_quo": "Show Quote",
+      "label_kb": "Knowledge Base",
+      "select_placeholder": "Please Select...",
+      "system": "System",
+      "similarity_threshold": "Similarity Threshold",
+      "similarity_weight": "Keyword Similarity Weight",
+      "rerank_model": "Rerank Model",
+      "label_var": "Variable",
+      "create_btn": "Create",
+      "table_column_1": "Keyword",
+      "table_column_2": "Optional",
+      "table_column_3": "Actions",
+      "label_llm": "Model",
+      "label_free": "Free",
+      "option_1": "Impromptu",
+      "option_2": "Precise",
+      "option_3": "Balanced",
+      "label_temp": "Temperature",
+      "label_attend": "Attendance Penalty",
+      "label_frequency": "Frequency Penalty",
+      "max_token_count": "Max Token Count"
+    }
   },
   "knowledgeLib": {
     "tab_1": "Dataset",

+ 46 - 1
public/i18n/lang-zh.json

@@ -79,11 +79,56 @@
     "searchAppTip": "全部应用类型",
     "searchLabelTip": "全部标签",
     "create_kb_title": "创建知识库",
+    "create_intel_title": "创建智能体",
     "label_name": "图标&名称",
     "label_desc": "描述",
     "input_placeholder": "请输入名称",
     "change_icon_title": "替换图标",
-    "all_icon": "全部图标"
+    "all_icon": "全部图标",
+    "create_intelligent_title": "新建智能体",
+    "create_btn": "新建",
+    "default_intelligent": {
+      "name_1": "知识问答助理",
+      "name_2": "聊天助理",
+      "name_3": "智能Agent",
+      "name_4": "工作流应用",
+      "desc_1": "基于专属知识库构建的智能问答助手,高效检索并解答特定领域问题,适用于文档问答、客户支持等场景",
+      "desc_2": "基于大型语言模型构建的对话式交互助手,适用于多轮对话场景",
+      "desc_3": "能够分解任务、进行推理思考并调用工具的对话式智能助手,适合处理复杂任务",
+      "desc_4": "通过流程编排的方式定义更灵活的 LLM 工作流,实现更稳定可控的输出"
+    },
+    "rg_config": {
+      "title": "智能体配置",
+      "tab_1": "助理设置",
+      "tab_2": "提示引擎",
+      "tab_3": "模型设置",
+      "label_name": "智能体名称",
+      "input_placeholder": "请输入名称",
+      "label_icon": "智能体图标",
+      "label_empty": "空回复",
+      "label_set_word": "设置开场白",
+      "label_quo": "显示引用",
+      "label_kb": "知识库",
+      "select_placeholder": "请选择...",
+      "system": "系统",
+      "similarity_threshold": "相似度阈值",
+      "similarity_weight": "关键字相似度权重",
+      "rerank_model": "Rerank模型",
+      "label_var": "变量",
+      "create_btn": "新建",
+      "table_column_1": "关键字",
+      "table_column_2": "可选",
+      "table_column_3": "操作",
+      "label_llm": "模型",
+      "label_free": "自由",
+      "option_1": "即兴创作",
+      "option_2": "精确",
+      "option_3": "平衡",
+      "label_temp": "温度",
+      "label_attend": "出席处罚",
+      "label_frequency": "频率处罚",
+      "max_token_count": "最大token数"
+    }
   },
   "knowledgeLib": {
     "tab_1": "数据集",

BIN
src/assets/image/management/label.png


+ 1 - 1
src/modules/intelligent/CardDefault.vue

@@ -55,7 +55,7 @@ const props = defineProps({
 }
 .section {
   margin: 20px 0;
-  height: 66px;
+  height: 90px;
   color: var(--color-neutral-8);
 }
 </style>

+ 26 - 11
src/modules/intelligent/MessageBody.vue

@@ -23,12 +23,14 @@
           :popup-max-height="false"
           @popup-visible-change="changeDropdownVisible($event, item.id)"
         >
-          <a-button v-if="!item.label.length" class="label-btn">
-            <icon-subscribe /> &nbsp;{{ $t('management.addLabelBtn') }}</a-button
-          >
-          <a-button v-else class="label-btn btn-content">
-            <icon-subscribe />&nbsp;{{ item.label.map((it) => it.labelName).join(',') }}</a-button
-          >
+          <div v-if="!item.label.length" class="label-btn">
+            <img class="icon" src="../../assets/image/management/label.png" />
+            <span class="text">{{ $t('management.addLabelBtn') }}</span>
+          </div>
+          <div v-else class="label-btn btn-content">
+            <img class="icon" src="../../assets/image/management/label.png" />
+            <span class="text">{{ item.label.map((it) => it.labelName).join(',') }}</span>
+          </div>
           <template #content>
             <div class="label-add">
               <LabelSelected
@@ -44,10 +46,12 @@
       </template>
       <template #bottom>
         <div class="bottom">
-          <div class="user"><icon-user /> {{ $t('management.createUser') }}:{{ item.user }}</div>
-          <div class="tools" v-if="item.online">
-            <icon-more :style="{ cursor: 'pointer' }" />
+          <div class="user">
+            <!-- <icon-user /> {{ $t('management.createUser') }}:{{ item.user }} -->
           </div>
+          <!-- <div class="tools" v-if="item.online">
+            <icon-more :style="{ cursor: 'pointer' }" />
+          </div> -->
           <div class="tools" v-if="!item.online">
             <icon-settings :style="{ cursor: 'pointer' }" @click.stop="editIntelligent(item)" />
             <icon-delete :style="{ cursor: 'pointer' }" @click.stop="deleteIntelligent(item)" />
@@ -297,18 +301,29 @@ onBeforeUnmount(() => {
   display: none;
 }
 .label-btn {
-  text-align: left;
+  position: relative;
   background-color: var(--color-neutral-2);
   color: var(--color-neutral-6);
   font-size: 12px;
   cursor: pointer;
-  width: 100%;
+  width: calc(100% - 60px);
+  height: 32px;
+  line-height: 32px;
+  padding: 0px 30px;
   overflow: hidden;
   display: -webkit-box;
   -webkit-line-clamp: 1;
   -webkit-box-orient: vertical;
   text-overflow: ellipsis;
   visibility: hidden;
+  .icon {
+    position: absolute;
+    top: 8px;
+    left: 15px;
+  }
+}
+.label-btn:hover {
+  background-color: var(--color-neutral-3);
 }
 .label-add {
   width: 240px;

+ 8 - 3
src/modules/intelligent/ModalAddIntel.vue

@@ -10,7 +10,7 @@
     @before-cancel="handleCancel"
   >
     <template #title>
-      <div class="model-title">新建智能体</div>
+      <div class="model-title">{{ $t('management.create_intelligent_title') }}</div>
     </template>
     <div class="section">
       <CardDefault
@@ -21,7 +21,9 @@
         :labels="item.labels"
       >
         <template #footer>
-          <a-button class="add-btn" @click="addNewIntelligent(item)"> <icon-plus /> 新建 </a-button>
+          <a-button class="add-btn" @click="addNewIntelligent(item)">
+            <icon-plus />&nbsp;{{ $t('management.create_btn') }}
+          </a-button>
         </template>
       </CardDefault>
     </div>
@@ -32,6 +34,9 @@
 import { ref, computed } from 'vue';
 import CardDefault from './CardDefault.vue';
 import { getDefaultIntelligent } from '../../views/manage/common';
+import { useI18n } from 'vue-i18n';
+
+const { t } = useI18n();
 
 const props = defineProps({
   visible: {
@@ -43,7 +48,7 @@ const emit = defineEmits(['update:visible', 'add_intelligent', 'createRAGFLOWInt
 
 const showModal = computed(() => props.visible);
 
-const default_intelligent = getDefaultIntelligent();
+const default_intelligent = computed(() => getDefaultIntelligent(t));
 
 const handleCancel = () => {
   emit('update:visible', false);

+ 2 - 3
src/modules/intelligent/ModalSelectIcon.vue

@@ -7,9 +7,9 @@
     @cancel="handleCancel"
     @before-ok="handleBeforeOk"
   >
-    <template #title>替换图标</template>
+    <template #title>{{ $t('management.change_icon_title') }}</template>
     <div class="section">
-      <div class="labels">全部图标</div>
+      <div class="labels">{{ $t('management.all_icon') }}</div>
       <div class="icons" v-for="(item, index) in icons" :key="index">
         <div
           class="icon-border"
@@ -29,7 +29,6 @@
 import { ref, computed, watch } from 'vue';
 import { getIconIntelligent } from '../common/icon-map.js';
 import { icons_intell } from '../../views/manage/common';
-import icon from '@arco-design/web-vue/es/icon';
 
 const props = defineProps({
   show_select_icon: {

+ 9 - 5
src/modules/intelligent/ModelAddItem.vue

@@ -1,17 +1,21 @@
 <template>
   <a-modal v-model:visible="show_modal" :align-center="false" top="15vh" @ok="handleOk" @cancel="handleCancel">
-    <template #title> 新建 </template>
+    <template #title> {{ $t('management.create_intel_title') }}</template>
     <div class="section">
       <div class="form-item">
-        <div class="label">图标&名称</div>
+        <div class="label">{{ $t('management.label_name') }}</div>
         <div class="value">
           <img class="icon" :src="getIconIntelligent(props.target_icon)" alt="" @click="handleSelectIcon" />
-          <a-input v-model="form.name" placeholder="请输入名称" />
+          <a-input v-model="form.name" :placeholder="$t('management.input_placeholder')" />
         </div>
       </div>
       <div class="form-item">
-        <div class="label">描述</div>
-        <a-textarea v-model="form.description" placeholder="描述" :auto-size="{ minRows: 2, maxRows: 5 }" />
+        <div class="label">{{ $t('management.label_desc') }}</div>
+        <a-textarea
+          v-model="form.description"
+          :placeholder="$t('management.label_desc')"
+          :auto-size="{ minRows: 2, maxRows: 5 }"
+        />
       </div>
     </div>
   </a-modal>

+ 8 - 3
src/modules/intelligent/TopSetting.vue

@@ -76,7 +76,7 @@
 </template>
 
 <script setup>
-import { ref, reactive, onUnmounted } from 'vue';
+import { ref, reactive, computed, onUnmounted } from 'vue';
 import { useRouter } from 'vue-router';
 import { Message } from '@arco-design/web-vue';
 import ModalAddIntel from './ModalAddIntel.vue';
@@ -93,7 +93,9 @@ import {
   bus_intelligentIconEdit,
   bus_intelligentLabelSync
 } from '../../base/event-bus';
+import { useI18n } from 'vue-i18n';
 
+const { t } = useI18n();
 const router = useRouter();
 
 const searchText = ref('');
@@ -113,8 +115,11 @@ let add_type = ref('add');
 let itemObj = reactive({});
 const edit_icon_data = ref(null);
 
-const search_app_list = getDefaultIntelligent();
-search_app_list.push({ name: 'basic', type: 'agent-basic' });
+const search_app_list = computed(() => {
+  const list = getDefaultIntelligent(t);
+  list.push({ name: 'basic', type: 'agent-basic' });
+  return list;
+});
 
 // 搜索
 const handleSearch = funcDebounce(

+ 72 - 36
src/modules/intelligent/rgflow/AgentConfig.vue

@@ -1,7 +1,8 @@
 <template>
+  <!-- 智能体配置 -->
   <a-modal
     v-model:visible="visible"
-    title="智能体配置"
+    :title="$t('management.rg_config.title')"
     @before-open="handleOpened"
     @cancel="handleCancel"
     :ok-loading="loading"
@@ -13,7 +14,8 @@
     <a-row class="">
       <a-col :span="24">
         <a-tabs type="capsule" size="large" :active-key="activeKey" @change="handleTabChange">
-          <a-tab-pane key="1" title="助理设置">
+          <!-- 助理设置 -->
+          <a-tab-pane key="1" :title="$t('management.rg_config.tab_1')">
             <a-divider style="margin-bottom: 20px; margin-top: 0" />
             <div style="width: 100%" :style="{ height: height }">
               <a-form
@@ -23,10 +25,12 @@
                 @submit="handleSubmit"
                 :style="{ width: '90%', margin: '0 auto' }"
               >
-                <a-form-item field="name" label="智能体名称">
-                  <a-input v-model="form.name" placeholder="请输入名称" />
+                <!-- 智能体名称 -->
+                <a-form-item field="name" :label="$t('management.rg_config.label_name')">
+                  <a-input v-model="form.name" :placeholder="$t('management.rg_config.input_placeholder')" />
                 </a-form-item>
-                <a-form-item v-if="typeAngint === 'add'" label="智能体图标" required>
+                <!-- 智能体图标 -->
+                <a-form-item v-if="typeAngint === 'add'" :label="$t('management.rg_config.label_icon')" required>
                   <a-space direction="vertical" :style="{ width: '100%' }">
                     <div class="upload-empty" v-if="!props.target_icon.length" @click="handleUploadIcon">
                       <icon-plus class="icon"></icon-plus>
@@ -39,13 +43,16 @@
                     />
                   </a-space>
                 </a-form-item>
-                <a-form-item label="空回复">
+                <!-- 空回复 -->
+                <a-form-item :label="$t('management.rg_config.label_empty')">
                   <a-input v-model="form.prompt_config.empty_response" placeholder="" />
                 </a-form-item>
-                <a-form-item label="设置开场白">
+                <!-- 设置开场白 -->
+                <a-form-item :label="$t('management.rg_config.label_set_word')">
                   <a-textarea v-model="form.prompt_config.prologue" placeholder="" style="height: 100px" />
                 </a-form-item>
-                <a-form-item label="显示引文">
+                <!-- 显示引文 -->
+                <a-form-item :label="$t('management.rg_config.label_quo')">
                   <a-space direction="vertical">
                     <a-switch v-model="form.prompt_config.quote" size="small" />
                   </a-space>
@@ -55,8 +62,9 @@
                     <a-switch v-model="form.prompt_config.self_rag" size="small" />
                   </a-space>
                 </a-form-item>
-                <a-form-item field="kb_ids" label="知识库">
-                  <a-select v-model="form.kb_ids" placeholder="请选择 ..." multiple>
+                <!-- 知识库 -->
+                <a-form-item field="kb_ids" :label="$t('management.rg_config.label_kb')">
+                  <a-select v-model="form.kb_ids" :placeholder="$t('management.rg_config.select_placeholder')" multiple>
                     <a-option v-for="item in tabs" :key="item.id" :value="item.id">
                       {{ item.name }}
                     </a-option>
@@ -65,7 +73,8 @@
               </a-form>
             </div>
           </a-tab-pane>
-          <a-tab-pane key="2" title="提示引擎">
+          <!-- 提示引擎 -->
+          <a-tab-pane key="2" :title="$t('management.rg_config.tab_2')">
             <a-divider style="margin-bottom: 20px; margin-top: 0" />
             <a-scrollbar style="width: 100%; overflow: auto" :style="{ height: height }">
               <a-form
@@ -76,22 +85,31 @@
                 auto-label-width
                 :style="{ width: '90%', margin: '0 auto' }"
               >
-                <a-form-item field="prompt_config.system" label="系统">
+                <!-- 系统 -->
+                <a-form-item field="prompt_config.system" :label="$t('management.rg_config.system')">
                   <a-textarea v-model="form.prompt_config.system" placeholder="" style="height: 180px" />
                 </a-form-item>
                 <a-divider style="margin: 0; margin-bottom: 10px" />
-                <a-form-item label="相似度阈值">
+                <!-- 相似度阈值 -->
+                <a-form-item :label="$t('management.rg_config.similarity_threshold')">
                   <a-slider v-model="form.similarity_threshold" :step="0.01" :min="0" :max="1" />
                 </a-form-item>
-                <a-form-item label="关键字相似度权重">
+                <!-- 关键字相似度权重 -->
+                <a-form-item :label="$t('management.rg_config.similarity_weight')">
                   <a-slider v-model="form.vector_similarity_weight" :step="0.01" :min="0" :max="1" />
                 </a-form-item>
                 <a-form-item label="Top N">
                   <a-slider v-model="form.top_n" :min="0" :max="30" />
                 </a-form-item>
-                <a-form-item label="Rerank模型">
+                <!-- Rerank模型 -->
+                <a-form-item :label="$t('management.rg_config.rerank_model')">
                   <a-space direction="vertical" size="large">
-                    <a-select :size="'large'" v-model="form.rerank_id" placeholder="请选择 ..." allow-clear>
+                    <a-select
+                      :size="'large'"
+                      v-model="form.rerank_id"
+                      :placeholder="$t('management.rg_config.select_placeholder')"
+                      allow-clear
+                    >
                       <a-optgroup :label="index" v-for="(item, index) in rankModelList" :key="index">
                         <a-option v-for="obj in item" :key="obj.fid" :disabled="!obj.available" :value="obj.llm_name">
                           {{ obj.llm_name }}
@@ -103,9 +121,13 @@
                 <a-form-item v-if="form.rerank_id" label="Top-K">
                   <a-slider v-model="form.top_k" :min="1" :max="2048" />
                 </a-form-item>
-                <a-form-item label="变量">
+                <!-- 变量 -->
+                <a-form-item :label="$t('management.rg_config.label_var')">
                   <div style="width: 100%; text-align: right">
-                    <a-button type="outline" @click="addVariable" style="" size="mini" shape="round"> 新建 </a-button>
+                    <!-- 新建 -->
+                    <a-button type="outline" @click="addVariable" style="" size="mini" shape="round">
+                      {{ $t('management.rg_config.create_btn') }}
+                    </a-button>
                   </div>
                 </a-form-item>
                 <a-form-item label="">
@@ -129,24 +151,27 @@
               </a-form>
             </a-scrollbar>
           </a-tab-pane>
-          <a-tab-pane key="3" title="模型设置">
+          <!-- 模型设置 -->
+          <a-tab-pane key="3" :title="$t('management.rg_config.tab_3')">
             <a-divider style="margin-bottom: 20px; margin-top: 0" />
             <div style="width: 100%" :style="{ height: height }">
               <a-form
                 ref="formRef2"
                 :rules="rules"
                 :model="form"
+                auto-label-width
                 @submit="handleSubmit"
                 :style="{ width: '90%', margin: '0 auto' }"
               >
-                <a-form-item field="llm_id" label="模型">
+                <!-- 模型 -->
+                <a-form-item field="llm_id" :label="$t('management.rg_config.label_llm')">
                   <a-space direction="vertical" size="large">
                     <a-select
                       :size="'large'"
                       field="llm_id"
                       v-model="form.llm_id"
                       style="width: 400px"
-                      placeholder="请选择"
+                      :placeholder="$t('management.rg_config.select_placeholder')"
                     >
                       <template v-for="(item, index) in modelList" :key="index">
                         <a-optgroup :label="index" v-if="item.length > 0">
@@ -159,14 +184,19 @@
                   </a-space>
                 </a-form-item>
                 <a-divider style="margin-bottom: 20px; margin-top: 0" />
-                <a-form-item label="自由">
+                <!-- 自由 -->
+                <a-form-item :label="$t('management.rg_config.label_free')">
                   <a-select default-value="2" :style="{ width: '400px' }" placeholder="">
-                    <a-option value="1">即兴创作</a-option>
-                    <a-option value="2">精确</a-option>
-                    <a-option value="3">平衡</a-option>
+                    <!-- 即兴创作 -->
+                    <a-option value="1">{{ $t('management.rg_config.option_1') }}</a-option>
+                    <!-- 精确 -->
+                    <a-option value="2">{{ $t('management.rg_config.option_2') }}</a-option>
+                    <!-- 平衡  -->
+                    <a-option value="3">{{ $t('management.rg_config.option_3') }}</a-option>
                   </a-select>
                 </a-form-item>
-                <a-form-item label="温度">
+                <!-- 温度 -->
+                <a-form-item :label="$t('management.rg_config.label_temp')">
                   <a-switch size="small" v-model="temperature" />
                   <a-space direction="vertical" size="large">
                     <a-slider
@@ -202,7 +232,8 @@
                     />
                   </a-space>
                 </a-form-item>
-                <a-form-item label="出席处罚">
+                <!-- 出席处罚 -->
+                <a-form-item :label="$t('management.rg_config.label_attend')">
                   <a-switch size="small" v-model="presence_penalty" />
                   <a-space direction="vertical" size="large">
                     <a-slider
@@ -220,7 +251,8 @@
                     />
                   </a-space>
                 </a-form-item>
-                <a-form-item label="频率处罚">
+                <!-- 频率处罚 -->
+                <a-form-item :label="$t('management.rg_config.label_frequency')">
                   <a-switch size="small" v-model="frequency_penalty" />
                   <a-space direction="vertical" size="large">
                     <a-slider
@@ -238,7 +270,8 @@
                     />
                   </a-space>
                 </a-form-item>
-                <a-form-item label="最大token数">
+                <!-- 最大token数 -->
+                <a-form-item :label="$t('management.rg_config.max_token_count')">
                   <a-switch size="small" v-model="max_tokens" />
                   <a-space direction="vertical" size="large">
                     <a-slider
@@ -273,6 +306,9 @@ import { createDialog } from '../../../apis/intelligent';
 import { getKnowledgeList } from '../../../apis/knowledge';
 import { dialogType } from '../../../views/manage/common.js';
 import useLoading from './loading';
+import { useI18n } from 'vue-i18n';
+
+const { t } = useI18n();
 
 const props = defineProps(['show_rg_config', 'typeAngint', 'formData', 'target_icon']);
 const emit = defineEmits([
@@ -339,23 +375,23 @@ let avatarShow = ref(true);
 
 const height = ref('calc(500px)');
 
-const columns = [
+const columns = computed(() => [
   {
-    title: '关键字',
+    title: t('management.rg_config.table_column_1'),
     dataIndex: 'name',
     slotName: 'name'
   },
   {
-    title: '可选',
+    title: t('management.rg_config.table_column_2'),
     dataIndex: 'optional',
     slotName: 'optional'
   },
   {
-    title: '操作',
+    title: t('management.rg_config.table_column_3'),
     dataIndex: 'action',
     slotName: 'action'
   }
-];
+]);
 
 const formatter = (value) => {
   return `${(value / 100).toFixed(2)}`;
@@ -652,7 +688,7 @@ defineExpose({
     }
   }
 }
-:deep(.arco-input-wrapper) {
+/* :deep(.arco-input-wrapper) {
   background-color: var(--color-neutral-2);
-}
+} */
 </style>

+ 37 - 9
src/views/manage/common.js

@@ -11,34 +11,62 @@ export const dialogType = {
 /**
  * @description: 默认智能体数据
  */
-export const getDefaultIntelligent = () => {
+export const getDefaultIntelligent = (t) => {
   return [
     {
-      name: '知识问答助理',
-      description: '基于专属知识库构建的智能问答助手,高效检索并解答特定领域问题,适用于文档问答、客户支持等场景',
+      name: t('management.default_intelligent.name_1'),
+      description: t('management.default_intelligent.desc_1'),
       labels: '',
       type: 'agent-dialog'
     },
     {
-      name: '聊天助理',
-      description: '基于大型语言模型构建的对话式交互助手,适用于多轮对话场景',
+      name: t('management.default_intelligent.name_2'),
+      description: t('management.default_intelligent.desc_2'),
       labels: '',
       type: 'advanced-chat'
     },
     {
-      name: '智能Agent',
-      description: '能够分解任务、进行推理思考并调用工具的对话式智能助手,适合处理复杂任务',
+      name: t('management.default_intelligent.name_3'),
+      description: t('management.default_intelligent.desc_3'),
       labels: '',
       type: 'agent-chat'
     },
     {
-      name: '工作流应用',
-      description: '通过流程编排的方式定义更灵活的 LLM 工作流,实现更稳定可控的输出',
+      name: t('management.default_intelligent.name_4'),
+      description: t('management.default_intelligent.desc_4'),
       labels: '',
       type: 'workflow'
     }
   ];
 };
+// export const getDefaultIntelligent = () => {
+//   return [
+//     {
+//       name: '知识问答助理',
+//       description: '基于专属知识库构建的智能问答助手,高效检索并解答特定领域问题,适用于文档问答、客户支持等场景',
+//       labels: '',
+//       type: 'agent-dialog'
+//     },
+//     {
+//       name: '聊天助理',
+//       description: '基于大型语言模型构建的对话式交互助手,适用于多轮对话场景',
+//       labels: '',
+//       type: 'advanced-chat'
+//     },
+//     {
+//       name: '智能Agent',
+//       description: '能够分解任务、进行推理思考并调用工具的对话式智能助手,适合处理复杂任务',
+//       labels: '',
+//       type: 'agent-chat'
+//     },
+//     {
+//       name: '工作流应用',
+//       description: '通过流程编排的方式定义更灵活的 LLM 工作流,实现更稳定可控的输出',
+//       labels: '',
+//       type: 'workflow'
+//     }
+//   ];
+// };
 
 /**
  * @description: 智能体图标