File tree Expand file tree Collapse file tree 2 files changed +23
-21
lines changed
web/src/components/WorkFlow Expand file tree Collapse file tree 2 files changed +23
-21
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,8 @@ const SharedNodeMenu: React.FC<SharedNodeMenuProps> = ({
119
119
border = "1px solid"
120
120
borderColor = "gray.200"
121
121
borderRadius = "lg"
122
- p = { 3 }
122
+ px = { 3 }
123
+ py = { 2 }
123
124
cursor = { isDraggable ? "move" : "pointer" }
124
125
onClick = {
125
126
! isDraggable
Original file line number Diff line number Diff line change @@ -93,6 +93,26 @@ export const nodeConfig: Record<string, NodeConfigItem> = {
93
93
inputVariables : [ ] ,
94
94
outputVariables : [ "response" ] ,
95
95
} ,
96
+ agent : {
97
+ display : "Agent" ,
98
+ icon : FaUserAstronaut ,
99
+ colorScheme : "yellow" ,
100
+ properties : AgentNodeProperties ,
101
+ allowedConnections : {
102
+ sources : [ "left" , "right" ] ,
103
+ targets : [ "left" , "right" ] ,
104
+ } ,
105
+ outputVariables : [ "response" ] ,
106
+ inputVariables : [ ] ,
107
+ initialData : {
108
+ model : "glm-4-flash" ,
109
+ temperature : 0.1 ,
110
+ systemMessage : "" ,
111
+ userMessage : "" ,
112
+ tools : [ ] ,
113
+ retrievalTools : [ ] ,
114
+ }
115
+ } ,
96
116
tool : {
97
117
display : "Tools" ,
98
118
icon : FaTools ,
@@ -327,26 +347,7 @@ export const nodeConfig: Record<string, NodeConfigItem> = {
327
347
mcp_config : { } ,
328
348
}
329
349
} ,
330
- agent : {
331
- display : "Agent" ,
332
- icon : FaUserAstronaut ,
333
- colorScheme : "yellow" ,
334
- properties : AgentNodeProperties ,
335
- allowedConnections : {
336
- sources : [ "left" , "right" ] ,
337
- targets : [ "left" , "right" ] ,
338
- } ,
339
- outputVariables : [ "response" ] ,
340
- inputVariables : [ ] ,
341
- initialData : {
342
- model : "glm-4-flash" ,
343
- temperature : 0.1 ,
344
- systemMessage : "" ,
345
- userMessage : "" ,
346
- tools : [ ] ,
347
- retrievalTools : [ ] ,
348
- }
349
- } ,
350
+
350
351
} ;
351
352
352
353
export type NodeType = keyof typeof nodeConfig ;
You can’t perform that action at this time.
0 commit comments