liudong
2024-08-24 7067723946f837d0468814c28fe4971b7c331d11
src/views/dmx/IntelligentAgent/components/agentConfig.vue
@@ -1,25 +1,4 @@
<template>
  <a-button
    v-if="typeAngint == 'add'"
    type="primary"
    @click="handleClick"
    style="margin-left: 10px"
  >
    <template #icon>
      <icon-plus />
    </template>
    新建智能体
  </a-button>
  <a-button
    v-if="typeAngint == 'edit'"
    type="text"
    size="small"
    @click="editClick"
  >
    <template #icon>
      <icon-tool />
    </template>
  </a-button>
  <a-modal
    v-model:visible="visible"
    title="智能体配置"
@@ -514,9 +493,6 @@
  const handleClick = () => {
    visible.value = true;
  };
  defineExpose({
    handleClick,
  });
  const handleCancel = () => {
    visible.value = false;
@@ -546,7 +522,7 @@
          '你是一个智能助手,请总结知识库的内容来回答问题,请列举知识库中的数据详细回答。当所有知识库内容都与问题无关时,你的回答必须包括“知识库中未找到您要的答案!”这句话。' +
          '回答需要考虑聊天历史。\n        以下是知识库:\n        {knowledge}\n        以上是知识库。';
      }
      console.log(form, '新建智能体弹窗');
      // console.log(form, '新建智能体弹窗');
      avatarShow.value = false;
      setTimeout(() => {
        avatarShow.value = true;
@@ -629,6 +605,7 @@
    });
  };
  const addVariable = () => {
    form.prompt_config.parameters.push({
      index: form.prompt_config.parameters.length,
@@ -699,6 +676,12 @@
  onMounted(() => {});
  onBeforeUnmount(() => {});
  defineExpose({
    handleClick,
    editClick
  });
</script>
<style lang="less" scoped>
  :deep(.arco-tabs-nav-tab-list) {