Skip to content

Commit 56bd27c

Browse files
committed
improved object-node : not attach it to runId !?
1 parent 78f69d2 commit 56bd27c

File tree

7 files changed

+453
-100
lines changed

7 files changed

+453
-100
lines changed

archive/json-map-language.json

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"@map": {
33
"@comment": "this maps input.messages to messages",
4-
"input": "@input",
4+
"input": "chat",
55
"property": "messages",
66
"map": {
77
"type": "object",
88
"properties": {
9-
"@set:role": "@item.role",
10-
"@set:content": "@item.message"
9+
"@set:role": "role",
10+
"@set:content": "message"
1111
}
1212
}
1313
},
@@ -16,27 +16,8 @@
1616
"role": "system",
1717
"@set:content": "input"
1818
},
19-
"@comment": "this sets the name property to the value of payload['input-property-name']",
20-
"@set:name": "input-property-name",
21-
"@operation:object": {
22-
"@comment": "this creates an object testtest with properties abc, list",
23-
"input": "@input.test",
24-
"property": "testtest",
25-
"properties": {
26-
"abc": "def",
27-
"@set:something": "@item.something",
28-
"@operation:map": {
29-
"input": "@item",
30-
"property": "list",
31-
"map": {
32-
"type": "object",
33-
"properties": {
34-
"@set:name": "@item.name",
35-
"@set:description": "@item.description",
36-
"@set:combined": "@template:@item.name - @item.description"
37-
}
38-
}
39-
}
40-
}
41-
}
19+
"temperature": 0.6,
20+
"model": "gpt-4-turbo",
21+
"max_tokens": 30,
22+
"stream": true
4223
}
Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
1+
{
2+
"schemaType": "flow",
3+
"schemaVersion": "0.0.1",
4+
"id": "1234",
5+
"flows": {
6+
"flow": {
7+
"flowType": "flow",
8+
"nodes": [
9+
{
10+
"id": "45040953-35bf-4b25-9002-0b7d9cb427cf",
11+
"x": 3731.3922373268115,
12+
"y": 1057.4339057194627,
13+
"width": 150,
14+
"height": 105,
15+
"nodeType": "Shape",
16+
"nodeInfo": {
17+
"type": "object-node",
18+
"formValues": {
19+
"input-thumbs": [
20+
{
21+
"thumbName": "message",
22+
"dataType": "string"
23+
},
24+
{
25+
"thumbName": "role",
26+
"dataType": "string"
27+
}
28+
],
29+
"clearMode": "false"
30+
},
31+
"isSettingsPopup": true
32+
}
33+
},
34+
{
35+
"id": "23aaa60e-4c2d-4551-86a8-364f39a239be",
36+
"x": 3414.2425154544235,
37+
"y": 1131.3832184738308,
38+
"width": 200,
39+
"height": 112,
40+
"nodeType": "Shape",
41+
"nodeInfo": {
42+
"type": "value",
43+
"formValues": {
44+
"value": "test"
45+
}
46+
}
47+
},
48+
{
49+
"id": "640f389c-5d19-4932-8ca5-63b027415cbd",
50+
"x": 3179.8728763183008,
51+
"y": 868.3421922951363,
52+
"width": 276.28741030073706,
53+
"height": 179.4254138372877,
54+
"nodeType": "Shape",
55+
"nodeInfo": {
56+
"type": "user-text-input",
57+
"formValues": {
58+
"label": "message",
59+
"value": "",
60+
"name": "",
61+
"group": ""
62+
},
63+
"isSettingsPopup": true,
64+
"isUINode": true
65+
}
66+
},
67+
{
68+
"id": "7cb75e13-bb06-455f-ba77-d4fb65e3c5e6",
69+
"x": 4038.409605966791,
70+
"y": 1072.6053719340232,
71+
"width": 120.00005724986859,
72+
"height": 152.0000100642854,
73+
"nodeType": "Shape",
74+
"nodeInfo": {
75+
"type": "show-input",
76+
"formValues": {
77+
"name": "",
78+
"data-type": "default"
79+
},
80+
"initializeOnStartFlow": true,
81+
"isSettingsPopup": true
82+
}
83+
},
84+
{
85+
"id": "d27b55a9-65e0-4de5-8a76-1a74d7a8d07a",
86+
"x": 3614.2425154544235,
87+
"y": 1187.3832184738308,
88+
"endX": 3731.3922373268115,
89+
"endY": 1137.4339057194627,
90+
"startNodeId": "23aaa60e-4c2d-4551-86a8-364f39a239be",
91+
"endNodeId": "45040953-35bf-4b25-9002-0b7d9cb427cf",
92+
"startThumbName": "output",
93+
"endThumbName": "input2",
94+
"lineType": "BezierCubic",
95+
"nodeType": "Connection",
96+
"layer": 1,
97+
"nodeInfo": {}
98+
},
99+
{
100+
"id": "1529496c-6d71-4509-b45c-b8fc75336503",
101+
"x": 3456.160286619038,
102+
"y": 947.3421922951363,
103+
"endX": 3731.3922373268115,
104+
"endY": 1087.4339057194627,
105+
"startNodeId": "640f389c-5d19-4932-8ca5-63b027415cbd",
106+
"endNodeId": "45040953-35bf-4b25-9002-0b7d9cb427cf",
107+
"startThumbName": "output",
108+
"endThumbName": "input1",
109+
"lineType": "BezierCubic",
110+
"nodeType": "Connection",
111+
"layer": 1,
112+
"nodeInfo": {}
113+
},
114+
{
115+
"id": "b9333da7-dc54-4e48-bd66-6f35fe620c5c",
116+
"x": 3881.3922373268115,
117+
"y": 1109.9339057194627,
118+
"endX": 4038.409605966791,
119+
"endY": 1102.6053719340232,
120+
"startNodeId": "45040953-35bf-4b25-9002-0b7d9cb427cf",
121+
"endNodeId": "7cb75e13-bb06-455f-ba77-d4fb65e3c5e6",
122+
"startThumbName": "output",
123+
"endThumbName": "input",
124+
"lineType": "BezierCubic",
125+
"nodeType": "Connection",
126+
"layer": 1,
127+
"nodeInfo": {}
128+
},
129+
{
130+
"id": "8c6fbbcb-1857-4a8a-8fb3-8f1ca678f7d8",
131+
"x": 4351.479975888918,
132+
"y": 1084.235157637023,
133+
"width": 280.00031860312316,
134+
"height": 40.00002294243826,
135+
"nodeType": "Shape",
136+
"nodeInfo": {
137+
"type": "push-value-to-array-variable",
138+
"formValues": {
139+
"variableName": "list"
140+
},
141+
"nodeCannotBeReplaced": false,
142+
"showFormOnlyInPopup": true,
143+
"useInCompositionOnly": false,
144+
"keepPopupOpenAfterUpdate": false,
145+
"taskType": "push-value-to-array-variable"
146+
}
147+
},
148+
{
149+
"id": "f7e45ac4-9072-496f-a349-5b846a5d3330",
150+
"x": 4158.409663216659,
151+
"y": 1102.6053719340232,
152+
"endX": 4351.479975888918,
153+
"endY": 1104.235169108242,
154+
"startNodeId": "7cb75e13-bb06-455f-ba77-d4fb65e3c5e6",
155+
"endNodeId": "8c6fbbcb-1857-4a8a-8fb3-8f1ca678f7d8",
156+
"startThumbName": "output",
157+
"endThumbName": "value",
158+
"lineType": "BezierCubic",
159+
"nodeType": "Connection",
160+
"layer": 1,
161+
"nodeInfo": {}
162+
},
163+
{
164+
"id": "1da8fe6a-467b-4e0d-88bf-2d6043ac8adb",
165+
"x": 4085.620375888256,
166+
"y": 796.9838537450435,
167+
"width": 239.99973978644815,
168+
"height": 167.99998647149377,
169+
"nodeType": "Shape",
170+
"nodeInfo": {
171+
"type": "scope-variable",
172+
"formValues": {
173+
"variableName": "list",
174+
"initialValue": "",
175+
"fieldType": "array",
176+
"fieldValueType": "object",
177+
"enumValues": [],
178+
"initialEnumValue": ""
179+
},
180+
"isVariable": true,
181+
"nodeCannotBeReplaced": true,
182+
"taskType": "scope-variable"
183+
}
184+
}
185+
]
186+
}
187+
},
188+
"compositions": {}
189+
}

0 commit comments

Comments
 (0)