Skip to content

Commit e8f7eaa

Browse files
committed
show event streaming progress
1 parent ed3d595 commit e8f7eaa

File tree

1 file changed

+151
-31
lines changed

1 file changed

+151
-31
lines changed

examples-test-flows/openai-fetch-completion-as-stream-with-toolcall.json

Lines changed: 151 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
"id": "d186a002-218b-47dc-aae8-07522a3da6ed",
4747
"x": 4483.009756940378,
4848
"y": 1009.3019209291535,
49-
"width": 119.99989379874336,
50-
"height": 56.00006000701117,
49+
"width": 119.99990849367349,
50+
"height": 272.0000176044985,
5151
"nodeType": "Shape",
5252
"nodeInfo": {
5353
"type": "show-input",
@@ -63,8 +63,8 @@
6363
"id": "383eb9cf-3b45-489e-8281-720b702b9159",
6464
"x": 3302.6184447265578,
6565
"y": 528.2644630083273,
66-
"width": 120.31252667724412,
67-
"height": 107.99995920266782,
66+
"width": 136.67209739727394,
67+
"height": 300.00000401229266,
6868
"nodeType": "Shape",
6969
"nodeInfo": {
7070
"type": "scope-variable",
@@ -167,8 +167,8 @@
167167
},
168168
{
169169
"id": "38a6cf26-b1c4-460d-92b0-86656e215a5a",
170-
"x": 4966.026928793747,
171-
"y": 1418.0005507561987,
170+
"x": 4966.026555483235,
171+
"y": 1418.0005949014421,
172172
"width": 200,
173173
"height": 128,
174174
"nodeType": "Shape",
@@ -187,8 +187,8 @@
187187
"id": "b936e1cd-134c-4476-b412-342c7d89c762",
188188
"x": 5386.760673284272,
189189
"y": 1453.0422559463495,
190-
"width": 119.99989379874336,
191-
"height": 55.99999913612361,
190+
"width": 119.99990849367349,
191+
"height": 271.99997880814703,
192192
"nodeType": "Shape",
193193
"nodeInfo": {
194194
"type": "show-input",
@@ -202,8 +202,8 @@
202202
},
203203
{
204204
"id": "471f94ef-642e-4065-9b19-600e87184b0c",
205-
"x": 4613.562367206762,
206-
"y": 1446.0828093084283,
205+
"x": 4613.562334169226,
206+
"y": 1447.5227059819117,
207207
"width": 200,
208208
"height": 64,
209209
"nodeType": "Shape",
@@ -241,8 +241,8 @@
241241
"id": "6e164a19-962b-412d-ad81-8505dcc24783",
242242
"x": 3731.953338189688,
243243
"y": 523.6128115645795,
244-
"width": 120.31252667724412,
245-
"height": 108.00005050899917,
244+
"width": 136.67178702646203,
245+
"height": 419.9999900986691,
246246
"nodeType": "Shape",
247247
"nodeInfo": {
248248
"type": "scope-variable",
@@ -471,8 +471,8 @@
471471
"id": "597efff5-91e1-40f2-bd4d-993567abb93a",
472472
"x": 4136.59680841861,
473473
"y": 526.2205686983754,
474-
"width": 120.31252667724412,
475-
"height": 107.9999896381116,
474+
"width": 120.31233953946541,
475+
"height": 107.99998883824934,
476476
"nodeType": "Shape",
477477
"nodeInfo": {
478478
"type": "scope-variable",
@@ -709,8 +709,8 @@
709709
"id": "f02b98f8-d7be-40ec-82da-0fcaddda5663",
710710
"x": 6021.817071637092,
711711
"y": 2275.116037678438,
712-
"width": 119.99989379874336,
713-
"height": 55.99999913612361,
712+
"width": 119.99990849367349,
713+
"height": 271.99997880814703,
714714
"nodeType": "Shape",
715715
"nodeInfo": {
716716
"type": "show-input",
@@ -724,8 +724,8 @@
724724
},
725725
{
726726
"id": "2ac953f1-dc37-41c9-a4be-ab85339ad5bc",
727-
"x": 6433.095442334594,
728-
"y": 2108.017958860211,
727+
"x": 6433.094898272377,
728+
"y": 2108.0181318174277,
729729
"width": 400,
730730
"height": 400,
731731
"nodeType": "Shape",
@@ -756,7 +756,7 @@
756756
},
757757
{
758758
"id": "9c9efadf-8473-439f-849b-1fa8cbc09ad5",
759-
"x": 4603.009650739121,
759+
"x": 4603.009665434051,
760760
"y": 1039.3019209291535,
761761
"endX": 4808.82988279589,
762762
"endY": 1032.15973144007,
@@ -788,8 +788,8 @@
788788
"id": "0dd730cc-1691-454f-868c-cb19da250699",
789789
"x": 4286.779755109308,
790790
"y": 1186.6877384308684,
791-
"endX": 4613.562367206762,
792-
"endY": 1478.0828093084283,
791+
"endX": 4613.562334169226,
792+
"endY": 1479.5227059819117,
793793
"startNodeId": "8f4ac174-5c8e-45da-8ad4-a81a40f4f666",
794794
"endNodeId": "471f94ef-642e-4065-9b19-600e87184b0c",
795795
"startThumbName": "end",
@@ -801,8 +801,8 @@
801801
},
802802
{
803803
"id": "e93c6ee9-f78f-40b0-94ef-d16b06126c68",
804-
"x": 5166.026928793747,
805-
"y": 1482.0005507561987,
804+
"x": 5166.026555483235,
805+
"y": 1482.0005949014421,
806806
"endX": 5386.760673284272,
807807
"endY": 1483.0422559463495,
808808
"startNodeId": "38a6cf26-b1c4-460d-92b0-86656e215a5a",
@@ -816,10 +816,10 @@
816816
},
817817
{
818818
"id": "31caf385-4ad3-4f88-8702-8feec6f30f4f",
819-
"x": 4813.562367206762,
820-
"y": 1478.0828093084283,
821-
"endX": 4966.026928793747,
822-
"endY": 1482.0005507561987,
819+
"x": 4813.562334169226,
820+
"y": 1479.5227059819117,
821+
"endX": 4966.026555483235,
822+
"endY": 1482.0005949014421,
823823
"startNodeId": "471f94ef-642e-4065-9b19-600e87184b0c",
824824
"endNodeId": "38a6cf26-b1c4-460d-92b0-86656e215a5a",
825825
"startThumbName": "output",
@@ -861,7 +861,7 @@
861861
},
862862
{
863863
"id": "7619188f-269f-46a1-b144-d641b411a547",
864-
"x": 5506.760567083015,
864+
"x": 5506.760581777946,
865865
"y": 1483.0422559463495,
866866
"endX": 5725.337982593981,
867867
"endY": 1685.1782664011737,
@@ -1161,10 +1161,10 @@
11611161
},
11621162
{
11631163
"id": "aa63fd0c-c4ee-46b8-abd4-d6d2d6c142c2",
1164-
"x": 6141.816965435835,
1164+
"x": 6141.816980130766,
11651165
"y": 2305.116037678438,
1166-
"endX": 6433.095442334594,
1167-
"endY": 2308.017958860211,
1166+
"endX": 6433.094898272377,
1167+
"endY": 2308.0181318174277,
11681168
"startNodeId": "f02b98f8-d7be-40ec-82da-0fcaddda5663",
11691169
"endNodeId": "2ac953f1-dc37-41c9-a4be-ab85339ad5bc",
11701170
"startThumbName": "output",
@@ -1173,6 +1173,126 @@
11731173
"nodeType": "Connection",
11741174
"layer": 1,
11751175
"nodeInfo": {}
1176+
},
1177+
{
1178+
"id": "bb043590-a5fc-4f4c-95e9-f89cb73dbeb5",
1179+
"x": 6764.885773263479,
1180+
"y": 798.0597305272516,
1181+
"width": 200.00029088708501,
1182+
"height": 63.99998485767688,
1183+
"nodeType": "Shape",
1184+
"nodeInfo": {
1185+
"type": "get-array",
1186+
"formValues": {
1187+
"variableName": "result"
1188+
},
1189+
"nodeCannotBeReplaced": false,
1190+
"showFormOnlyInPopup": true,
1191+
"useInCompositionOnly": false,
1192+
"keepPopupOpenAfterUpdate": false,
1193+
"taskType": "get-array"
1194+
}
1195+
},
1196+
{
1197+
"id": "65149c21-fa2c-4c60-b3ec-d0c4c8b3485a",
1198+
"x": 7149.0825680873195,
1199+
"y": 763.5156525527909,
1200+
"width": 200.00043905494857,
1201+
"height": 128.00003359234788,
1202+
"nodeType": "Shape",
1203+
"nodeInfo": {
1204+
"type": "join-array",
1205+
"formValues": {
1206+
"joinChar": ""
1207+
},
1208+
"nodeCannotBeReplaced": false,
1209+
"showFormOnlyInPopup": false,
1210+
"useInCompositionOnly": false,
1211+
"keepPopupOpenAfterUpdate": false,
1212+
"taskType": "join-array"
1213+
}
1214+
},
1215+
{
1216+
"id": "db7f5391-4ec1-4b12-83cd-8413c081b28e",
1217+
"x": 6597.654836589958,
1218+
"y": 837.4755269345331,
1219+
"endX": 6764.885773263479,
1220+
"endY": 830.0597229560901,
1221+
"startNodeId": "4ffd9779-4d78-4122-9619-ee6dcf7ee81d",
1222+
"endNodeId": "bb043590-a5fc-4f4c-95e9-f89cb73dbeb5",
1223+
"startThumbName": "output",
1224+
"endThumbName": "input",
1225+
"lineType": "BezierCubic",
1226+
"nodeType": "Connection",
1227+
"layer": 1,
1228+
"nodeInfo": {}
1229+
},
1230+
{
1231+
"id": "d628b79e-f0fc-4dd2-a35b-807277439408",
1232+
"x": 6964.8860641505635,
1233+
"y": 830.0597229560901,
1234+
"endX": 7149.0825680873195,
1235+
"endY": 827.5156693489648,
1236+
"startNodeId": "bb043590-a5fc-4f4c-95e9-f89cb73dbeb5",
1237+
"endNodeId": "65149c21-fa2c-4c60-b3ec-d0c4c8b3485a",
1238+
"startThumbName": "output",
1239+
"endThumbName": "input",
1240+
"lineType": "BezierCubic",
1241+
"nodeType": "Connection",
1242+
"layer": 1,
1243+
"nodeInfo": {}
1244+
},
1245+
{
1246+
"id": "bbd6ebe9-c403-4807-aea4-dd0bc2169dbf",
1247+
"x": 4966.026555483235,
1248+
"y": 1714.0005949014421,
1249+
"width": 199.99997075821278,
1250+
"height": 128.0000233726445,
1251+
"nodeType": "Shape",
1252+
"nodeInfo": {
1253+
"type": "join-array",
1254+
"formValues": {
1255+
"joinChar": ""
1256+
},
1257+
"nodeCannotBeReplaced": false,
1258+
"showFormOnlyInPopup": false,
1259+
"useInCompositionOnly": false,
1260+
"keepPopupOpenAfterUpdate": false,
1261+
"taskType": "join-array"
1262+
}
1263+
},
1264+
{
1265+
"id": "c68ce9ef-1673-4edc-8d1c-4ade51e9ddff",
1266+
"x": 7593.264901209055,
1267+
"y": 629.2702750663578,
1268+
"width": 400,
1269+
"height": 400,
1270+
"nodeType": "Shape",
1271+
"nodeInfo": {
1272+
"type": "iframe-html-node",
1273+
"formValues": {
1274+
"html": "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <title>Plot visualization</title>\n <script src=\"https://cdn.tailwindcss.com\"></script>\n <script src=\"https://unpkg.com/showdown/dist/showdown.min.js\"></script>\n <style>\n .wrapper {\n \n }\n </style>\n </head>\n <body class=\"bg-white w-full\">\n <div class=\"min-h-screen w-full flex wrapper\" id=\"inner\">\n <div\n id=\"message-container\"\n class=\"grid w-full p-8\" \n ></div>\n </div>\n\n <script>\n // Initialize the global variable \"input\"\n window.input = window.input;\n let inputstream = [];\n let initialized = false;\n let elements = [];\n\n let messageContainer = document.getElementById('message-container');\n // Function to rerender the UI\n function rerenderUI() {\n if (!initialized && window['createElement']) {\n initialized = true;\n }\n let documentFragment = document.createDocumentFragment();\n let messages = [];\n if (window.input !== undefined) {\n let divElement = document.createElement(\n \n 'div',\n {class:\"\"}\n );\n \n const converter = new showdown.Converter(); \n const html = converter.makeHtml(window.input);\n\n divElement.innerHTML = `<div>${html}</div>`;\n \n documentFragment.appendChild(divElement);\n }\n messageContainer.replaceChildren(documentFragment);\n }\n\n // Attach the rerenderUI function to the global onExecute method\n window.onExecute = rerenderUI;\n\n rerenderUI();\n </script>\n </body>\n</html>\n",
1275+
"aiprompt": ""
1276+
},
1277+
"showFormOnlyInPopup": true,
1278+
"initializeOnStartFlow": true,
1279+
"taskType": "iframe-html-node"
1280+
}
1281+
},
1282+
{
1283+
"id": "52470d44-2037-44f9-ba81-6cd7014e7567",
1284+
"x": 7349.083007142268,
1285+
"y": 827.5156693489648,
1286+
"endX": 7593.264901209055,
1287+
"endY": 829.2702750663578,
1288+
"startNodeId": "65149c21-fa2c-4c60-b3ec-d0c4c8b3485a",
1289+
"endNodeId": "c68ce9ef-1673-4edc-8d1c-4ade51e9ddff",
1290+
"startThumbName": "output",
1291+
"endThumbName": "input",
1292+
"lineType": "BezierCubic",
1293+
"nodeType": "Connection",
1294+
"layer": 1,
1295+
"nodeInfo": {}
11761296
}
11771297
]
11781298
}

0 commit comments

Comments
 (0)