1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
| import { NodeType, nodeTypeMap } from '../vueFlowEnum';
|
| export class VueFlowConfig {
| static nodeStyleMap = new Map([
| [
| NodeType.Start,
| {
| type: NodeType.Start,
| title: nodeTypeMap[NodeType.Start],
| icon: 'xiangxiajiantou -rotate-90',
| fontSize: '13',
| color: 'white',
| class: '!bg-primary ',
| },
| ],
| [
| NodeType.End,
| {
| type: NodeType.End,
| title: nodeTypeMap[NodeType.End],
| icon: 'jieshu',
| fontSize: '13',
| color: 'white',
| class: '!bg-primary ',
| },
| ],
| [
| NodeType.Condition,
| {
| type: NodeType.Condition,
| title: nodeTypeMap[NodeType.Condition],
| icon: 'jiegousheji',
| fontSize: '14',
| class: 'bg-[#edc9e9] ',
| },
| ],
| [
| NodeType.LLM,
| {
| type: NodeType.LLM,
| title: nodeTypeMap[NodeType.LLM],
| icon: 'llm',
| fontSize: '14',
| class: 'bg-[#d9d7ff] ',
| },
| ],
| [
| NodeType.Output,
| {
| type: NodeType.Output,
| title: nodeTypeMap[NodeType.Output],
| icon: 'xiaoxi1',
| fontSize: '14',
| class: 'bg-[#9ce4f4] ',
| },
| ],
| [
| NodeType.Agent,
| {
| type: NodeType.Agent,
| title: nodeTypeMap[NodeType.Agent],
| icon: 'wode',
| fontSize: '14',
| class: 'bg-[#ffd89a] ',
| },
| ],
| [
| NodeType.Func,
| {
| type: NodeType.Func,
| title: nodeTypeMap[NodeType.Func],
| icon: 'kaishi',
| fontSize: '14',
| class: 'bg-[#bbdbff] ',
| },
| ],
| [
| NodeType.Code,
| {
| type: NodeType.Code,
| title: nodeTypeMap[NodeType.Code],
| icon: 'didaima',
| fontSize: '18',
| class: 'bg-[#b8eedf] !p-1',
| },
| ],
| [
| NodeType.PythonCode,
| {
| type: NodeType.PythonCode,
| title: nodeTypeMap[NodeType.PythonCode],
| icon: 'didaima',
| fontSize: '18',
| class: 'bg-[#0062be] !p-1',
| },
| ],
| [
| NodeType.TextResource,
| {
| type: NodeType.TextResource,
| title: nodeTypeMap[NodeType.TextResource],
| icon: 'document',
| fontSize: '14',
| class: 'bg-[#c8a2c8] ',
| },
| ],
| [
| NodeType.Analysis,
| {
| type: NodeType.Analysis,
| title: nodeTypeMap[NodeType.Analysis],
| icon: 'sousuo',
| fontSize: '14',
| class: 'bg-[#98fb98] ',
| },
| ],
| ]);
| }
|
|