| | |
| | | <div |
| | | class="w-max-[520px] border-2 rounded-lg border-solid border-gray-100 bg-white p-3 shadow-md relative hover:border-blue-500 group" |
| | | > |
| | | <Handle :id="targetHandleId" type="source" :position="Position.Left" /> |
| | | <Handle :id="targetHandleId" type="target" :position="Position.Left" /> |
| | | <div |
| | | class="group-hover:visible invisible flex absolute divide-y-[1.5px] divide-solid divide-gray-100 rounded-lg right-0 -top-0.5 translate-y-[-100%]" |
| | | style="box-shadow: 0 0 15px #dbdee6" |
| | |
| | | <div class="flex flex-col gap-y-2"> |
| | | <div class="flex justify-between flex-0"> |
| | | <div class="flex items-center gap-x-2"> |
| | | <img src="/@/components/vue-flow/ui/assets/images/icon_Start.png" class="h-4 w-4" alt="Start icon" /> |
| | | <YWIcon |
| | | :name="VueFlowConfig.nodeStyleMap.get(NodeType.Agent).icon" |
| | | :fontSize="VueFlowConfig.nodeStyleMap.get(NodeType.Agent).fontSize" |
| | | :color="VueFlowConfig.nodeStyleMap.get(NodeType.Agent).color" |
| | | class="rounded-lg p-1.5" |
| | | :class="VueFlowConfig.nodeStyleMap.get(NodeType.Agent).class" |
| | | /> |
| | | <div class="flex flex-col gap-y-1"> |
| | | <p v-if="!titleIsEdit" class="text-xl font-bold text-gray-500" @click="titleIsEdit = true">{{ data.title }}</p> |
| | | <el-input v-elInputFocus="false" v-else v-model="data.title" @blur="() => (titleIsEdit = false)"></el-input> |
| | |
| | | </div> |
| | | |
| | | <div class="flex-auto gap-y-2 flex-col flex nodrag"> |
| | | <!-- <div class="text-lg font-bold">代理</div> --> |
| | | <div class="text-lg font-bold">代理名称</div> |
| | | |
| | | <div class="min-w-[340px] flex-items-center gap-x-2"> |
| | | <div class="flex-column gap-y-1.5"> |
| | | <!-- <span class="text-gray-500">模型</span> --> |
| | | <el-select filterable placeholder="请选择代理" v-model="agentParams.value" @change="agentParamsValueChange"> |
| | | <el-select filterable placeholder="请选择代理名称" v-model="agentParams.value" @change="agentParamsValueChange"> |
| | | <el-option v-for="item in agentNames" :key="item.id" :value="item.id" :label="item.title"></el-option> |
| | | </el-select> |
| | | </div> |
| | |
| | | import { Handle, Position, useNode, useVueFlow } from '@vue-flow/core'; |
| | | import { ref } from 'vue'; |
| | | |
| | | import type { NodeProps } from '@vue-flow/core'; |
| | | import { VueFlowHelper } from '../../VueFlowHelper'; |
| | | import { LLMNodeData, LLMNodeEvents } from './index'; |
| | | import { NodeType } from '../../vueFlowEnum'; |
| | | import { VueFlowConfig } from '../VueFlowConfig'; |
| | | import { deepClone } from '/@/utils/other'; |
| | | |
| | | // defineProps<NodeProps<LLMNodeData, LLMNodeEvents>>(); |